mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-14 15:28:13 +00:00
GPU: fix build when SDL_GPU_DISABLED is set
This commit is contained in:
@@ -562,7 +562,11 @@ const char * SDL_GetGPUDriver(int index)
|
||||
SDL_InvalidParamError("index");
|
||||
return NULL;
|
||||
}
|
||||
#ifndef SDL_GPU_DISABLED
|
||||
return backends[index]->name;
|
||||
#else
|
||||
return NULL;
|
||||
#endif
|
||||
}
|
||||
|
||||
const char * SDL_GetGPUDeviceDriver(SDL_GPUDevice *device)
|
||||
|
Reference in New Issue
Block a user