|
|
@ -163,7 +163,7 @@ namespace sh
|
|
|
|
mTexUnits.push_back(texUnit);
|
|
|
|
mTexUnits.push_back(texUnit);
|
|
|
|
|
|
|
|
|
|
|
|
// set texture unit indices (required by GLSL)
|
|
|
|
// 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);
|
|
|
|
pass->setTextureUnitIndex (foundVertex ? GPT_Vertex : GPT_Fragment, texIt->getName(), i);
|
|
|
|
|
|
|
|
|
|
|
|