mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-21 05:56:37 +00:00
Make sure to pass through flush if we really mapped underlying buffer
This commit is contained in:
@@ -1768,7 +1768,10 @@ void WrappedOpenGL::glFlushMappedNamedBufferRangeEXT(GLuint buffer, GLintptr off
|
||||
|
||||
// note that we only want to flush the range with GL if we've actually
|
||||
// mapped it. Otherwise the map is 'virtual' and just pointing to our backing store data
|
||||
if(record && record->Map.status == GLResourceRecord::Mapped_Write_Real)
|
||||
if(record &&
|
||||
(record->Map.status == GLResourceRecord::Mapped_Write_Real ||
|
||||
record->Map.status == GLResourceRecord::Mapped_Ignore_Real)
|
||||
)
|
||||
m_Real.glFlushMappedNamedBufferRangeEXT(buffer, offset, length);
|
||||
|
||||
if(m_State == WRITING_CAPFRAME)
|
||||
|
||||
Reference in New Issue
Block a user