mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-05 17:36:25 +00:00
SDL GPU: Implemented opt out Vulkan device features (#13016)
This commit is contained in:
@@ -450,7 +450,7 @@ static const SDL_GPUBootstrap * SDL_GPUSelectBackend(SDL_PropertiesID props)
|
||||
SDL_SetError("Required shader format for backend %s not provided!", gpudriver);
|
||||
return NULL;
|
||||
}
|
||||
if (backends[i]->PrepareDriver(_this)) {
|
||||
if (backends[i]->PrepareDriver(_this, props)) {
|
||||
return backends[i];
|
||||
}
|
||||
}
|
||||
@@ -465,7 +465,7 @@ static const SDL_GPUBootstrap * SDL_GPUSelectBackend(SDL_PropertiesID props)
|
||||
// Don't select a backend which doesn't support the app's shaders.
|
||||
continue;
|
||||
}
|
||||
if (backends[i]->PrepareDriver(_this)) {
|
||||
if (backends[i]->PrepareDriver(_this, props)) {
|
||||
return backends[i];
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user