Simplify hasNPotSupport()
check
This commit is contained in:
parent
8d4be71810
commit
0b4dda3c4a
@ -1039,15 +1039,13 @@ bool hasNPotSupport()
|
|||||||
return supported;
|
return supported;
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
// gles3 has NPotSupport and used on iOS by default
|
|
||||||
bool hasNPotSupport()
|
bool hasNPotSupport()
|
||||||
{
|
{
|
||||||
#ifdef __IOS__
|
#ifdef __IOS__
|
||||||
static const std::string &driverstring = g_settings->get("video_driver");
|
return true; // Irrlicht cares about it on iOS
|
||||||
return (driverstring != "ogles1");
|
|
||||||
#else
|
|
||||||
return false;
|
|
||||||
#endif
|
#endif
|
||||||
|
static const std::string &driverstring = g_settings->get("video_driver");
|
||||||
|
return (driverstring != "ogles1"); // gles3 has NPot Support and used instead of gles2
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user