Assert on record should only happen when writing

This commit is contained in:
baldurk
2014-08-15 18:57:27 +01:00
parent 3303cc69e1
commit deead1c90e
@@ -1415,9 +1415,10 @@ void WrappedOpenGL::glDisableVertexAttribArray(GLuint index)
m_Real.glDisableVertexAttribArray(index);
GLResourceRecord *r = m_VertexArrayRecord ? m_VertexArrayRecord : m_DeviceRecord;
RDCASSERT(r);
if(m_State >= WRITING)
{
RDCASSERT(r);
SCOPED_SERIALISE_CONTEXT(DISABLEVERTEXATTRIBARRAY);
Serialise_glDisableVertexAttribArray(index);