浏览代码

Fix assert in SDL_BeginGPURenderPass

Antti Ala-Fossi 3 周之前
父节点
当前提交
29f3844b01
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/gpu/SDL_gpu.c

+ 1 - 1
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;
             }