Fix unused variable warning on METAL (see bug #5430)

This commit is contained in:
Sylvain Becker 2021-01-05 12:36:34 +01:00
parent c1eb9ecf99
commit b032504162

View File

@ -842,8 +842,6 @@ METAL_UpdateTextureNV(SDL_Renderer * renderer, SDL_Texture * texture,
const Uint8 *UVplane, int UVpitch) const Uint8 *UVplane, int UVpitch)
{ @autoreleasepool { { @autoreleasepool {
METAL_TextureData *texturedata = (__bridge METAL_TextureData *)texture->driverdata; METAL_TextureData *texturedata = (__bridge METAL_TextureData *)texture->driverdata;
const int Uslice = 0;
const int Vslice = 1;
SDL_Rect UVrect = {rect->x / 2, rect->y / 2, (rect->w + 1) / 2, (rect->h + 1) / 2}; SDL_Rect UVrect = {rect->x / 2, rect->y / 2, (rect->w + 1) / 2, (rect->h + 1) / 2};
/* Bail out if we're supposed to update an empty rectangle */ /* Bail out if we're supposed to update an empty rectangle */