Added SDL_PROP_RENDERER_GPU_DEVICE_POINTER

Fixes https://github.com/libsdl-org/SDL/issues/11600
This commit is contained in:
Sam Lantinga
2024-12-23 16:30:18 -08:00
parent 7a22076a7c
commit 969f03d9f0
3 changed files with 12 additions and 0 deletions

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;
}