mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-23 15:06:32 +00:00
Only flush persistent maps in glMemoryBarrier when capturing a frame
This commit is contained in:
@@ -487,7 +487,7 @@ bool WrappedOpenGL::Serialise_glMemoryBarrier(SerialiserType &ser, GLbitfield ba
|
||||
|
||||
void WrappedOpenGL::glMemoryBarrier(GLbitfield barriers)
|
||||
{
|
||||
if(barriers & GL_CLIENT_MAPPED_BUFFER_BARRIER_BIT)
|
||||
if(IsActiveCapturing(m_State) && (barriers & GL_CLIENT_MAPPED_BUFFER_BARRIER_BIT))
|
||||
{
|
||||
// perform a forced flush of all persistent mapped buffers,
|
||||
// coherent or not.
|
||||
|
||||
Reference in New Issue
Block a user