mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-11-14 09:50:06 +00:00
Handle buffers being a NULL pointer in glBindBuffersBase
This commit is contained in:
1 file changed
+1
-1
@@ -1628,7 +1628,7 @@ void WrappedOpenGL::glBindBuffersBase(GLenum target, GLuint first, GLsizei count
|
||||
if(r && (target == eGL_TRANSFORM_FEEDBACK_BUFFER || target == eGL_SHADER_STORAGE_BUFFER ||
|
||||
target == eGL_ATOMIC_COUNTER_BUFFER))
|
||||
{
|
||||
if(IsBackgroundCapturing(m_State))
|
||||
if(IsBackgroundCapturing(m_State) && buffers)
|
||||
{
|
||||
for(int i = 0; i < count; i++)
|
||||
GetResourceManager()->MarkDirtyResource(BufferRes(GetCtx(), buffers[i]));
|
||||
|
||||
Reference in new issue
Block a user