mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-03-20 15:51:07 +01:00
Fix assert in SDL_BeginGPURenderPass
This commit is contained in:
committed by
Sam Lantinga
parent
74653b3cd5
commit
29f3844b01
@@ -1798,7 +1798,7 @@ SDL_GPURenderPass *SDL_BeginGPURenderPass(
|
||||
}
|
||||
|
||||
if (textureHeader->info.layer_count_or_depth > 255) {
|
||||
SDL_assert_release("Cannot bind a depth texture with more than 255 layers!");
|
||||
SDL_assert_release(!"Cannot bind a depth texture with more than 255 layers!");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user