mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 10:00:40 +00:00
Silently drop waits on non-existant syncs (from previous frames)
This commit is contained in:
@@ -87,8 +87,11 @@ bool WrappedOpenGL::Serialise_glClientWaitSync(GLsync sync, GLbitfield flags, GL
|
||||
|
||||
if(m_State < WRITING)
|
||||
{
|
||||
GLResource res = GetResourceManager()->GetLiveResource(id);
|
||||
glClientWaitSync(GetResourceManager()->GetSync(res.name), Flags, Timeout);
|
||||
if(GetResourceManager()->HasLiveResource(id))
|
||||
{
|
||||
GLResource res = GetResourceManager()->GetLiveResource(id);
|
||||
glClientWaitSync(GetResourceManager()->GetSync(res.name), Flags, Timeout);
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
@@ -117,8 +120,11 @@ bool WrappedOpenGL::Serialise_glWaitSync(GLsync sync, GLbitfield flags, GLuint64
|
||||
|
||||
if(m_State < WRITING)
|
||||
{
|
||||
GLResource res = GetResourceManager()->GetLiveResource(id);
|
||||
glWaitSync(GetResourceManager()->GetSync(res.name), Flags, Timeout);
|
||||
if(GetResourceManager()->HasLiveResource(id))
|
||||
{
|
||||
GLResource res = GetResourceManager()->GetLiveResource(id);
|
||||
glWaitSync(GetResourceManager()->GetSync(res.name), Flags, Timeout);
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user