1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-04-01 21:06:41 +00:00

Set texture unit indices for GLSL ES

This commit is contained in:
scrawl 2014-07-22 23:05:40 +02:00
parent 75366b2e37
commit 07cfa2abd5

View file

@ -163,7 +163,7 @@ namespace sh
mTexUnits.push_back(texUnit);
// set texture unit indices (required by GLSL)
if (useShaders && ((hasVertex && foundVertex) || (hasFragment && foundFragment)) && mFactory->getCurrentLanguage () == Language_GLSL)
if (useShaders && ((hasVertex && foundVertex) || (hasFragment && foundFragment)) && (mFactory->getCurrentLanguage () == Language_GLSL || mFactory->getCurrentLanguage() == Language_GLSLES))
{
pass->setTextureUnitIndex (foundVertex ? GPT_Vertex : GPT_Fragment, texIt->getName(), i);