mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-10 08:41:04 +00:00
Change GLResource tuple to be three components including Context
* This lets us distinguish framebuffer object 1 on context A from FBO 1 on context B. * At the moment we assume that all shareable objects are shared between all contexts. I think this is sensible and fairly common, but it will break if some contexts don't share as the objects will alias.
This commit is contained in:
@@ -47,10 +47,10 @@ bool WrappedOpenGL::Serialise_glObjectLabel(GLenum identifier, GLuint name, GLsi
|
||||
switch(identifier)
|
||||
{
|
||||
case eGL_TEXTURE:
|
||||
liveid = GetResourceManager()->GetID(TextureRes(name));
|
||||
liveid = GetResourceManager()->GetID(TextureRes(GetCtx(), name));
|
||||
break;
|
||||
case eGL_BUFFER:
|
||||
liveid = GetResourceManager()->GetID(BufferRes(name));
|
||||
liveid = GetResourceManager()->GetID(BufferRes(GetCtx(), name));
|
||||
break;
|
||||
default:
|
||||
RDCERR("Unhandled namespace in glObjectLabel");
|
||||
|
||||
Reference in New Issue
Block a user