mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-06-01 01:17:40 +00:00
GPU: fix build when SDL_GPU_DISABLED is set
This commit is contained in:
parent
e973b687cd
commit
0685b96469
1 changed files with 4 additions and 0 deletions
|
@ -562,7 +562,11 @@ const char * SDL_GetGPUDriver(int index)
|
||||||
SDL_InvalidParamError("index");
|
SDL_InvalidParamError("index");
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
#ifndef SDL_GPU_DISABLED
|
||||||
return backends[index]->name;
|
return backends[index]->name;
|
||||||
|
#else
|
||||||
|
return NULL;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
const char * SDL_GetGPUDeviceDriver(SDL_GPUDevice *device)
|
const char * SDL_GetGPUDeviceDriver(SDL_GPUDevice *device)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue