mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-11-06 05:53:08 +00:00
Properly push and pop copy read buffer binding
This commit is contained in:
1 file changed
+5
@@ -1380,6 +1380,9 @@ public:
|
||||
{
|
||||
CHECK_DEVICE_THREAD();
|
||||
|
||||
GLuint oldbuf = 0;
|
||||
GL.glGetIntegerv(eGL_COPY_READ_BUFFER_BINDING, (GLint *)&oldbuf);
|
||||
|
||||
bytebuf gpuResults;
|
||||
gpuResults.resize(m_MathBufferSize + m_SampleBufferSize);
|
||||
if(m_MathBuffer)
|
||||
@@ -1434,6 +1437,8 @@ public:
|
||||
gpuSampleGatherOpResults += sampleGatherOpResultByteSize;
|
||||
}
|
||||
|
||||
GL.glBindBuffer(eGL_COPY_READ_BUFFER, oldbuf);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user