mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-10-09 22:01:36 +00:00
Check that resource is available before setting object label
This commit is contained in:
1 parent
043dc09d30
commit
acb66bf626
1 file changed
+1
-1
@@ -86,7 +86,7 @@ bool WrappedOpenGL::Serialise_glObjectLabel(GLenum identifier, GLuint name, GLsi
|
||||
|
||||
m_pSerialiser->SerialiseString("label", Label);
|
||||
|
||||
if(m_State == READING)
|
||||
if(m_State == READING && GetResourceManager()->HasLiveResource(id))
|
||||
{
|
||||
GLResource res = GetResourceManager()->GetLiveResource(id);
|
||||
m_Real.glObjectLabel(Identifier, res.name, Length, HasLabel ? Label.c_str() : NULL);
|
||||
|
||||
Reference in new issue
Block a user