mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-09-30 17:45:57 +00:00
Get NULL-check the right way around in ?: operator. Refs #754
This commit is contained in:
@@ -4181,8 +4181,8 @@ bool WrappedOpenGL::Serialise_glVertexArrayVertexBuffers(GLuint vaobj, GLuint fi
|
||||
buffers && buffers[i]
|
||||
? GetResourceManager()->GetID(BufferRes(GetCtx(), buffers[i]))
|
||||
: ResourceId());
|
||||
SERIALISE_ELEMENT(uint64_t, offset, buffers ? 0 : (uint64_t)offsets[i]);
|
||||
SERIALISE_ELEMENT(uint64_t, stride, buffers ? 0 : (uint64_t)strides[i]);
|
||||
SERIALISE_ELEMENT(uint64_t, offset, buffers ? (uint64_t)offsets[i] : 0);
|
||||
SERIALISE_ELEMENT(uint64_t, stride, buffers ? (uint64_t)strides[i] : 0);
|
||||
|
||||
if(m_State <= EXECUTING)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user