From b0325041620e2830a7f311641aee56703a189694 Mon Sep 17 00:00:00 2001 From: Sylvain Becker Date: Tue, 5 Jan 2021 12:36:34 +0100 Subject: [PATCH] Fix unused variable warning on METAL (see bug #5430) --- src/render/metal/SDL_render_metal.m | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/render/metal/SDL_render_metal.m b/src/render/metal/SDL_render_metal.m index ea7a693d4..fcb828691 100644 --- a/src/render/metal/SDL_render_metal.m +++ b/src/render/metal/SDL_render_metal.m @@ -842,8 +842,6 @@ METAL_UpdateTextureNV(SDL_Renderer * renderer, SDL_Texture * texture, const Uint8 *UVplane, int UVpitch) { @autoreleasepool { 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}; /* Bail out if we're supposed to update an empty rectangle */