mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-05-25 22:19:10 +00:00
SDL_gpu.c: fixed build when SDL_GPU_DISABLED is defined.
This commit is contained in:
parent
f6f49de134
commit
a833ee2e63
1 changed files with 1 additions and 3 deletions
|
@ -150,7 +150,6 @@
|
|||
|
||||
// Drivers
|
||||
|
||||
#ifndef SDL_GPU_DISABLED
|
||||
static const SDL_GPUBootstrap *backends[] = {
|
||||
#ifdef SDL_GPU_METAL
|
||||
&MetalDriver,
|
||||
|
@ -166,7 +165,6 @@ static const SDL_GPUBootstrap *backends[] = {
|
|||
#endif
|
||||
NULL
|
||||
};
|
||||
#endif // SDL_GPU_DISABLED
|
||||
|
||||
// Internal Utility Functions
|
||||
|
||||
|
@ -438,7 +436,6 @@ static const SDL_GPUBootstrap * SDL_GPUSelectBackend(SDL_PropertiesID props)
|
|||
SDL_LogError(SDL_LOG_CATEGORY_GPU, "No supported SDL_GPU backend found!");
|
||||
return NULL;
|
||||
}
|
||||
#endif // SDL_GPU_DISABLED
|
||||
|
||||
static void SDL_GPU_FillProperties(
|
||||
SDL_PropertiesID props,
|
||||
|
@ -467,6 +464,7 @@ static void SDL_GPU_FillProperties(
|
|||
SDL_SetBooleanProperty(props, SDL_PROP_GPU_DEVICE_CREATE_DEBUGMODE_BOOL, debug_mode);
|
||||
SDL_SetStringProperty(props, SDL_PROP_GPU_DEVICE_CREATE_NAME_STRING, name);
|
||||
}
|
||||
#endif // SDL_GPU_DISABLED
|
||||
|
||||
SDL_bool SDL_GPUSupportsShaderFormats(
|
||||
SDL_GPUShaderFormat format_flags,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue