From 29f3844b01d9eb40d319b5d3f32712b0ac3a0980 Mon Sep 17 00:00:00 2001 From: Antti Ala-Fossi Date: Tue, 25 Nov 2025 20:21:24 +0200 Subject: [PATCH] Fix assert in SDL_BeginGPURenderPass --- src/gpu/SDL_gpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gpu/SDL_gpu.c b/src/gpu/SDL_gpu.c index 8d66b1531b..feeec81d53 100644 --- a/src/gpu/SDL_gpu.c +++ b/src/gpu/SDL_gpu.c @@ -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; }