Added SDL_PROP_RENDERER_GPU_DEVICE_POINTER

Fixes https://github.com/libsdl-org/SDL/issues/11600
This commit is contained in:
Sam Lantinga committed 2024-12-23 16:51:43 -08:00
1 parent 7a22076a7c
commit 969f03d9f0
3 files changed
+12

No files matched your search

+2
View File
@@ -1284,6 +1284,8 @@ static bool GPU_CreateRenderer(SDL_Renderer *renderer, SDL_Window *window, SDL_P
return false;
}
SDL_SetPointerProperty(SDL_GetRendererProperties(renderer), SDL_PROP_RENDERER_GPU_DEVICE_POINTER, data->device);
return true;
}