1
0

Simplify hasNPotSupport() check

(cherry picked from commit 0b4dda3c4ac110f9b6ee0bab93529108f4d91150)
This commit is contained in:
Maksym H 2023-08-03 01:13:32 +03:00 committed by mckaygerhard
parent 413367631f
commit 714de48c75

View File

@ -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