glx: MakeCurrent fixes.
authorThomas Hellstrom <thellstrom-at-vmware-dot-com>
Thu, 2 Apr 2009 09:00:41 +0000 (11:00 +0200)
committerThomas Hellstrom <thellstrom-at-vmware-dot-com>
Thu, 2 Apr 2009 09:33:20 +0000 (11:33 +0200)
commit96fd3df59a161957876bfd7a49992e5a2130370c
treee9fa2479b5bf78f847cb6762d21f5b5583cbd780
parent8e753d04045a82062ac34d3b2622eb9dba8af374
glx: MakeCurrent fixes.

1) If MakeContextCurrent is called with (NULL, None, None), Don't
   send the request to the X server if the current context is direct.
2) Return BadMatch in some error cases according to the glx spec.
3) If MakeContextCurrent is called for a context which is current in
   another thread, return BadAccess according to the glx spec.

Signed-off-by: Thomas Hellstrom <thellstrom-at-vmware-dot-com>
src/glx/x11/glxclient.h
src/glx/x11/glxcurrent.c