GPU: Update to set supported shader formats inside CreateDevice

This commit is contained in:
Logan
2025-05-18 13:04:20 +12:00
committed by Sam Lantinga
parent 514d96de07
commit 8289656a4e
4 changed files with 17 additions and 1 deletions

View File

@@ -672,7 +672,6 @@ SDL_GPUDevice *SDL_CreateGPUDeviceWithProperties(SDL_PropertiesID props)
result = selectedBackend->CreateDevice(debug_mode, preferLowPower, props);
if (result != NULL) {
result->backend = selectedBackend->name;
result->shader_formats = selectedBackend->shader_formats;
result->debug_mode = debug_mode;
}
}