mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-11-11 13:05:16 +00:00
Fix compiling Metal renderer with SDL_LEAN_AND_MEAN
This commit is contained in:
@@ -795,9 +795,8 @@ static bool METAL_CreateTexture(SDL_Renderer *renderer, SDL_Texture *texture, SD
|
|||||||
texturedata.fragmentFunction = SDL_METAL_FRAGMENT_YUV;
|
texturedata.fragmentFunction = SDL_METAL_FRAGMENT_YUV;
|
||||||
} else if (nv12) {
|
} else if (nv12) {
|
||||||
texturedata.fragmentFunction = SDL_METAL_FRAGMENT_NV12;
|
texturedata.fragmentFunction = SDL_METAL_FRAGMENT_NV12;
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
else {
|
} else {
|
||||||
texturedata.fragmentFunction = SDL_METAL_FRAGMENT_COPY;
|
texturedata.fragmentFunction = SDL_METAL_FRAGMENT_COPY;
|
||||||
}
|
}
|
||||||
texturedata.mtltexture = mtltexture;
|
texturedata.mtltexture = mtltexture;
|
||||||
|
|||||||
Reference in New Issue
Block a user