From deead1c90e5b11a5a8b65d9c6b3738be8d1926a2 Mon Sep 17 00:00:00 2001 From: baldurk Date: Fri, 15 Aug 2014 18:57:27 +0100 Subject: [PATCH] Assert on record should only happen when writing --- renderdoc/driver/gl/wrappers/gl_buffer_funcs.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/renderdoc/driver/gl/wrappers/gl_buffer_funcs.cpp b/renderdoc/driver/gl/wrappers/gl_buffer_funcs.cpp index 51631f5c5..baf944123 100644 --- a/renderdoc/driver/gl/wrappers/gl_buffer_funcs.cpp +++ b/renderdoc/driver/gl/wrappers/gl_buffer_funcs.cpp @@ -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);