소스 검색

Fix assert in SDL_BeginGPURenderPass

Antti Ala-Fossi 9 달 전
부모
커밋
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;
             }