Properly push and pop copy read buffer binding

This commit is contained in:
baldurk committed 2026-10-29 17:33:21 +00:00
1 parent 682a9b2c13
commit 10f9c2b471
1 file changed
+5
+5
View File
@@ -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;
}