Fix compiling Metal renderer with SDL_LEAN_AND_MEAN

This commit is contained in:
ROllerozxa authored and Sam Lantinga committed 2025-10-07 16:20:59 -07:00
1 parent 0bbbf3d43b
commit f43577bbb5
1 file changed
+1 -2
+1 -2
View File
@@ -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;