Fix an awful typo.

This commit is contained in:
scrawl 2013-12-19 01:31:42 +01:00
parent 6a3eb3b355
commit 18c002a21d

View file

@ -220,9 +220,8 @@ namespace Terrain
++neededTextureUnits; // layer texture ++neededTextureUnits; // layer texture
// Check if this layer has a normal map // Check if this layer has a normal map
if (mNormalMapping && !mLayerList[layerOffset].mNormalMap.empty()) if (mNormalMapping && !mLayerList[layerIndex].mNormalMap.empty() && !renderCompositeMap)
++neededTextureUnits; // normal map ++neededTextureUnits; // normal map
if (neededTextureUnits <= remainingTextureUnits) if (neededTextureUnits <= remainingTextureUnits)
{ {
// We can fit another! // We can fit another!