forked from mirror/openmw-tes3mp
Add an assertion
This commit is contained in:
parent
18c002a21d
commit
5fd98d7c3a
1 changed files with 2 additions and 0 deletions
|
@ -334,6 +334,8 @@ namespace Terrain
|
|||
// Make sure the pass index is fed to the permutation handler, because blendmap components may be different
|
||||
p->mShaderProperties.setProperty ("pass_index", sh::makeProperty(new sh::IntValue(layerOffset)));
|
||||
|
||||
assert ((int)p->mTexUnits.size() == OGRE_MAX_TEXTURE_LAYERS - remainingTextureUnits);
|
||||
|
||||
layerOffset += numLayersInThisPass;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue