aboutsummaryrefslogtreecommitdiff
path: root/xorg-server/glamor/glamor_glx.c
diff options
context:
space:
mode:
Diffstat (limited to 'xorg-server/glamor/glamor_glx.c')
-rw-r--r--xorg-server/glamor/glamor_glx.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/xorg-server/glamor/glamor_glx.c b/xorg-server/glamor/glamor_glx.c
index 311bf758d..8f47c3d2c 100644
--- a/xorg-server/glamor/glamor_glx.c
+++ b/xorg-server/glamor/glamor_glx.c
@@ -53,13 +53,7 @@ glamor_glx_get_context(struct glamor_context *glamor_ctx)
static void
glamor_glx_put_context(struct glamor_context *glamor_ctx)
{
- if (--glamor_ctx->get_count)
- return;
-
- /* We actually reset the context, so that indirect GLX's EGL usage
- * won't get confused by ours.
- */
- glXMakeCurrent(glamor_ctx->display, None, NULL);
+ --glamor_ctx->get_count;
}
Bool