mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-28 09:26:52 +00:00
Assert on record should only happen when writing
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user