From 9759aeaf760aa47bd311e3cbcc09c7aa65fd63ab Mon Sep 17 00:00:00 2001 From: sfan5 Date: Thu, 4 Jan 2018 15:37:45 +0100 Subject: [PATCH] Fix broken HUD textures on iOS --- src/guiscalingfilter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/guiscalingfilter.cpp b/src/guiscalingfilter.cpp index 9766a30ad..b76bf8dfb 100644 --- a/src/guiscalingfilter.cpp +++ b/src/guiscalingfilter.cpp @@ -113,7 +113,7 @@ video::ITexture *guiScalingResizeCached(video::IVideoDriver *driver, (u32)destrect.getHeight())); imageScaleNNAA(srcimg, srcrect, destimg); -#ifdef __ANDROID__ +#if defined(__ANDROID__) || defined(__IOS__) // Android is very picky about textures being powers of 2, so expand // the image dimensions to the next power of 2, if necessary, for // that platform.