Fix build error in SDL_render_metal.m (bug #4916.)

Patch provided by Konrad. Error was introduced by commit 522164980828 for bug #4914.
This commit is contained in:
Ozkan Sezer 2019-12-23 19:55:10 +03:00
parent 6d639fce2d
commit ef3ca2cc46
1 changed files with 1 additions and 0 deletions

View File

@ -949,6 +949,7 @@ METAL_UnlockTexture(SDL_Renderer * renderer, SDL_Texture * texture)
static void static void
METAL_SetTextureScaleMode(SDL_Renderer * renderer, SDL_Texture * texture, SDL_ScaleMode scaleMode) METAL_SetTextureScaleMode(SDL_Renderer * renderer, SDL_Texture * texture, SDL_ScaleMode scaleMode)
{ @autoreleasepool { { @autoreleasepool {
METAL_RenderData *data = (__bridge METAL_RenderData *) renderer->driverdata;
METAL_TextureData *texturedata = (__bridge METAL_TextureData *)texture->driverdata; METAL_TextureData *texturedata = (__bridge METAL_TextureData *)texture->driverdata;
if (scaleMode == SDL_ScaleModeNearest) { if (scaleMode == SDL_ScaleModeNearest) {