mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-05 09:30:44 +00:00
Delete old sync objects before re-syncing in glFenceSync
This commit is contained in:
@@ -59,6 +59,18 @@ bool WrappedOpenGL::Serialise_glFenceSync(SerialiserType &ser, GLsync real, GLen
|
||||
|
||||
if(IsReplayingAndReading())
|
||||
{
|
||||
// if we've already sync'd, delete the old one
|
||||
if(GetResourceManager()->HasLiveResource(sync))
|
||||
{
|
||||
GLResource res = GetResourceManager()->GetLiveResource(sync);
|
||||
GLsync oldSyncObj = GetResourceManager()->GetSync(res.name);
|
||||
|
||||
m_Real.glDeleteSync(oldSyncObj);
|
||||
|
||||
GetResourceManager()->UnregisterResource(res);
|
||||
GetResourceManager()->EraseLiveResource(sync);
|
||||
}
|
||||
|
||||
real = m_Real.glFenceSync(condition, flags);
|
||||
|
||||
GLuint name = 0;
|
||||
|
||||
Reference in New Issue
Block a user