From ef3ca2cc46afc317cca0a484eb3187b810db9f69 Mon Sep 17 00:00:00 2001 From: Ozkan Sezer Date: Mon, 23 Dec 2019 19:55:10 +0300 Subject: [PATCH] Fix build error in SDL_render_metal.m (bug #4916.) Patch provided by Konrad. Error was introduced by commit 522164980828 for bug #4914. --- src/render/metal/SDL_render_metal.m | 1 + 1 file changed, 1 insertion(+) diff --git a/src/render/metal/SDL_render_metal.m b/src/render/metal/SDL_render_metal.m index f8ab1fcd6..6c43dd4c6 100644 --- a/src/render/metal/SDL_render_metal.m +++ b/src/render/metal/SDL_render_metal.m @@ -949,6 +949,7 @@ METAL_UnlockTexture(SDL_Renderer * renderer, SDL_Texture * texture) static void METAL_SetTextureScaleMode(SDL_Renderer * renderer, SDL_Texture * texture, SDL_ScaleMode scaleMode) { @autoreleasepool { + METAL_RenderData *data = (__bridge METAL_RenderData *) renderer->driverdata; METAL_TextureData *texturedata = (__bridge METAL_TextureData *)texture->driverdata; if (scaleMode == SDL_ScaleModeNearest) {