Fixed crash with NzShader::SendTexture
Former-commit-id: 6851bb0842f32f5b34a3e8075cfeac6501d18914
This commit is contained in:
parent
35ea331357
commit
6999a60c3d
|
|
@ -448,7 +448,7 @@ bool NzGLSLShader::SendTexture(int location, const NzTexture* texture, nzUInt8*
|
||||||
if (textureUnit)
|
if (textureUnit)
|
||||||
*textureUnit = slot.unit;
|
*textureUnit = slot.unit;
|
||||||
}
|
}
|
||||||
else
|
else if (texture)
|
||||||
{
|
{
|
||||||
unsigned int maxUnits = NzRenderer::GetMaxTextureUnits();
|
unsigned int maxUnits = NzRenderer::GetMaxTextureUnits();
|
||||||
unsigned int unitUsed = m_textures.size();
|
unsigned int unitUsed = m_textures.size();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue