From 0b4dda3c4ac110f9b6ee0bab93529108f4d91150 Mon Sep 17 00:00:00 2001 From: Maksym H Date: Thu, 3 Aug 2023 01:13:32 +0300 Subject: [PATCH] Simplify `hasNPotSupport()` check --- src/client/tile.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/client/tile.cpp b/src/client/tile.cpp index c2c6a3aff..1567eeac1 100644 --- a/src/client/tile.cpp +++ b/src/client/tile.cpp @@ -1039,15 +1039,13 @@ bool hasNPotSupport() return supported; } #else -// gles3 has NPotSupport and used on iOS by default bool hasNPotSupport() { #ifdef __IOS__ - static const std::string &driverstring = g_settings->get("video_driver"); - return (driverstring != "ogles1"); -#else - return false; + return true; // Irrlicht cares about it on iOS #endif + static const std::string &driverstring = g_settings->get("video_driver"); + return (driverstring != "ogles1"); // gles3 has NPot Support and used instead of gles2 } #endif