mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 01:50:38 +00:00
Fix reading back index buffer to determine client vertex range.
This commit is contained in:
committed by
Baldur Karlsson
parent
6c348c65c2
commit
f2b2c6c5b9
@@ -774,8 +774,8 @@ WrappedOpenGL::ClientMemoryData *WrappedOpenGL::CopyClientMemoryArrays(GLint fir
|
||||
if(idxbuf != 0)
|
||||
{
|
||||
// If we were using a real index buffer, read it back to check its range.
|
||||
mmIndices = m_Real.glMapBufferRange(eGL_ELEMENT_ARRAY_BUFFER, (size_t)indices,
|
||||
idxlen - (size_t)indices, eGL_MAP_READ_BIT);
|
||||
mmIndices = m_Real.glMapBufferRange(eGL_ELEMENT_ARRAY_BUFFER, (size_t)indices, idxlen,
|
||||
eGL_MAP_READ_BIT);
|
||||
}
|
||||
|
||||
size_t min = ~0u, max = 0;
|
||||
|
||||
Reference in New Issue
Block a user