mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-11-05 13:37:06 +00:00
Check for NULL textures array in glBindTextures (acts like array of 0s)
This commit is contained in:
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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user