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:
parent
75366b2e37
commit
07cfa2abd5
1 changed files with 1 additions and 1 deletions
2
extern/shiny/Main/MaterialInstance.cpp
vendored
2
extern/shiny/Main/MaterialInstance.cpp
vendored
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue