glx: Move GLX MakeCurrent lastGLContext updates next to makeCurrent().
authorEric Anholt <eric@anholt.net>
Fri, 18 Apr 2014 01:23:51 +0000 (18:23 -0700)
committerEric Anholt <eric@anholt.net>
Wed, 23 Apr 2014 17:32:07 +0000 (10:32 -0700)
commit789509ef5324ce9141222fa92dea51b5cc777209
tree3446dd13750c648d0d60b2c0c53b2c24ee4bee28
parentabf12027063dbe22bec1d055ad8db365cf07395a
glx: Move GLX MakeCurrent lastGLContext updates next to makeCurrent().

We want to make sure that lastGLContext is set correctly during
makeCurrent, because we may have recursive GL context changes in the
DRI2 interfaces due to glamor.

Signed-off-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
glx/glxcmds.c
glx/glxext.c