mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-29 21:30:53 +00:00
Make sure shadow pointers for persistent maps are initialised correctly
This commit is contained in:
@@ -380,6 +380,10 @@ void WrappedOpenGL::Common_glNamedBufferStorageEXT(ResourceId id, GLsizeiptr siz
|
||||
|
||||
// persistent maps always need both sets of shadow storage, so allocate up front.
|
||||
record->AllocShadowStorage(size);
|
||||
|
||||
// ensure shadow pointers have up to date data for diffing
|
||||
memcpy(record->GetShadowPtr(0), data, size);
|
||||
memcpy(record->GetShadowPtr(1), data, size);
|
||||
}
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user