mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-12 22:14:42 +00:00
Fix an awful typo.
This commit is contained in:
parent
6a3eb3b355
commit
18c002a21d
@ -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…
x
Reference in New Issue
Block a user