1
0

Add hasNPotSupport() check in getTexture() function

(cherry picked from commit 63fa8c286fe09c5f7fc2c9a81be80f1b03d89be4)
This commit is contained in:
Maksym H 2023-07-05 00:54:22 +02:00 committed by mckaygerhard
parent c0f745994c
commit 4c4b00d719

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;