Fixed crash with NzShader::SendTexture

Former-commit-id: 6851bb0842f32f5b34a3e8075cfeac6501d18914
This commit is contained in:
Lynix 2013-03-20 15:42:22 +01:00
parent 35ea331357
commit 6999a60c3d
1 changed files with 1 additions and 1 deletions

View File

@ -448,7 +448,7 @@ bool NzGLSLShader::SendTexture(int location, const NzTexture* texture, nzUInt8*
if (textureUnit)
*textureUnit = slot.unit;
}
else
else if (texture)
{
unsigned int maxUnits = NzRenderer::GetMaxTextureUnits();
unsigned int unitUsed = m_textures.size();