glamor: Stop unsetting the EGL context in put_context().
authorEric Anholt <eric@anholt.net>
Sat, 15 Mar 2014 00:29:31 +0000 (17:29 -0700)
committerEric Anholt <eric@anholt.net>
Wed, 23 Apr 2014 17:32:20 +0000 (10:32 -0700)
This matches the Xephyr behavior.  Now that we know when to reset the
context in the presence of GLX, we don't need to try to keep our stuff
from being smashed by GLX.

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

index 33a95a0..a16022b 100644 (file)
@@ -112,11 +112,7 @@ glamor_egl_get_context(struct glamor_context *glamor_ctx)
 static void
 glamor_egl_put_context(struct glamor_context *glamor_ctx)
 {
-    if (--glamor_ctx->get_count)
-        return;
-
-    eglMakeCurrent(glamor_ctx->display, EGL_NO_SURFACE,
-                   EGL_NO_SURFACE, EGL_NO_CONTEXT);
+    --glamor_ctx->get_count;
 }
 
 static EGLImageKHR