瀏覽代碼

Fix compiling Metal renderer with SDL_LEAN_AND_MEAN

ROllerozxa 2 月之前
父節點
當前提交
f43577bbb5
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      src/render/metal/SDL_render_metal.m

+ 1 - 2
src/render/metal/SDL_render_metal.m

@@ -795,9 +795,8 @@ static bool METAL_CreateTexture(SDL_Renderer *renderer, SDL_Texture *texture, SD
             texturedata.fragmentFunction = SDL_METAL_FRAGMENT_YUV;
         } else if (nv12) {
             texturedata.fragmentFunction = SDL_METAL_FRAGMENT_NV12;
-        }
 #endif
-        else {
+        } else {
             texturedata.fragmentFunction = SDL_METAL_FRAGMENT_COPY;
         }
         texturedata.mtltexture = mtltexture;