forked from mirror/openmw-tes3mp
Fix an awful typo.
This commit is contained in:
parent
6a3eb3b355
commit
18c002a21d
1 changed files with 1 additions and 2 deletions
|
@ -220,9 +220,8 @@ namespace Terrain
|
|||
++neededTextureUnits; // layer texture
|
||||
|
||||
// Check if this layer has a normal map
|
||||
if (mNormalMapping && !mLayerList[layerOffset].mNormalMap.empty())
|
||||
if (mNormalMapping && !mLayerList[layerIndex].mNormalMap.empty() && !renderCompositeMap)
|
||||
++neededTextureUnits; // normal map
|
||||
|
||||
if (neededTextureUnits <= remainingTextureUnits)
|
||||
{
|
||||
// We can fit another!
|
||||
|
|
Loading…
Reference in a new issue