Don't register live resources during capture

* Otherwise we try and delete these resources on shutdown, which we shouldn't.
This commit is contained in:
baldurk
2018-08-02 11:32:43 +01:00
parent e636b610f9
commit 948274189c
@@ -818,13 +818,13 @@ GLuint WrappedOpenGL::glCreateProgram()
record->AddChunk(chunk);
}
else
{
GetResourceManager()->AddLiveResource(id, res);
m_Programs[id].linked = false;
}
m_Programs[id].linked = false;
return real;
}