GPU: fix build when SDL_GPU_DISABLED is set
This commit is contained in:
1 parent
e973b687cd
commit
0685b96469
1 file changed
+4
@@ -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