1
0

Add hasNPotSupport() check in getTexture() function

This commit is contained in:
Maksym H 2023-07-05 00:54:22 +02:00
parent 01610cb845
commit 63fa8c286f

View File

@ -81,6 +81,9 @@ video::ITexture *MenuTextureSource::getTexture(const std::string &name, u32 *id)
return NULL;
#if ENABLE_GLES
if (hasNPotSupport())
return m_driver->getTexture(name.c_str());
video::ITexture *retval = m_driver->findTexture(name.c_str());
if (retval)
return retval;