mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-07-08 08:40:55 +00:00
Don't need record when not writing
This commit is contained in:
@@ -1971,9 +1971,10 @@ void WrappedOpenGL::glVertexAttribPointer(GLuint index, GLint size, GLenum type,
|
||||
m_Real.glVertexAttribPointer(index, size, type, normalized, stride, pointer);
|
||||
|
||||
GLResourceRecord *r = m_VertexArrayRecord ? m_VertexArrayRecord : m_DeviceRecord;
|
||||
RDCASSERT(r);
|
||||
if(m_State >= WRITING)
|
||||
{
|
||||
RDCASSERT(r);
|
||||
|
||||
SCOPED_SERIALISE_CONTEXT(VERTEXATTRIBPOINTER);
|
||||
Serialise_glVertexAttribPointer(index, size, type, normalized, stride, pointer);
|
||||
|
||||
@@ -1997,9 +1998,10 @@ void WrappedOpenGL::glEnableVertexAttribArray(GLuint index)
|
||||
m_Real.glEnableVertexAttribArray(index);
|
||||
|
||||
GLResourceRecord *r = m_VertexArrayRecord ? m_VertexArrayRecord : m_DeviceRecord;
|
||||
RDCASSERT(r);
|
||||
if(m_State >= WRITING)
|
||||
{
|
||||
RDCASSERT(r);
|
||||
|
||||
SCOPED_SERIALISE_CONTEXT(ENABLEVERTEXATTRIBARRAY);
|
||||
Serialise_glEnableVertexAttribArray(index);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user