Check for NULL textures array in glBindTextures (acts like array of 0s)

This commit is contained in:
baldurk committed 2016-09-06 18:29:01 +02:00
1 parent 06831aeaea
commit 446874e70a
1 file changed
+1 -1
@@ -335,7 +335,7 @@ void WrappedOpenGL::glBindTextures(GLuint first, GLsizei count, const GLuint *te
m_ContextRecord->AddChunk(scope.Get());
for(GLsizei i = 0; i < count; i++)
if(textures[i])
if(textures != NULL && textures[i] != 0)
GetResourceManager()->MarkResourceFrameReferenced(TextureRes(GetCtx(), textures[i]),
eFrameRef_Read);
}