Skip to content

Commit

Permalink
For SDL3, alias Vulkan override to SDL_GPU
Browse files Browse the repository at this point in the history
  • Loading branch information
flibitijibibo committed Dec 19, 2024
1 parent 3f5b716 commit 93d8163
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/FNA3D.c
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,18 @@ uint32_t FNA3D_PrepareWindowAttributes(void)
uint32_t result = 0;
uint32_t i;
const char *hint = SDL_GetHint("FNA3D_FORCE_DRIVER");

/* We used to have our own Vulkan renderer, but that work is now in SDL
* instead. For maximum compatibility, alias this to SDL_GPU!
* -flibit
*/
#ifdef USE_SDL3
if ((hint != NULL) && (SDL_strcasecmp(hint, "Vulkan") == 0))
{
hint = "SDLGPU";
}
#endif

for (i = 0; drivers[i] != NULL; i += 1)
{
if (hint != NULL)
Expand Down

0 comments on commit 93d8163

Please sign in to comment.