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:
Baldur Karlsson
2014-06-27 13:24:19 +01:00
parent 5cb6edffb8
commit 5e32950195
16 changed files with 231 additions and 218 deletions
@@ -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");