Commit 707726b1 authored by Eric Anholt's avatar Eric Anholt

glamor: Do the same MakeCurrent(None) for GLX as we do for EGL.

Signed-off-by: default avatarEric Anholt <eric@anholt.net>
Reviewed-by: default avatarMichel Dänzer <michel.daenzer@amd.com>
Reviewed-by: default avatarAdam Jackson <ajax@redhat.com>
parent 482b06a9
...@@ -36,6 +36,14 @@ ...@@ -36,6 +36,14 @@
static void static void
glamor_glx_make_current(struct glamor_context *glamor_ctx) glamor_glx_make_current(struct glamor_context *glamor_ctx)
{ {
/* There's only a single global dispatch table in Mesa. EGL, GLX,
* and AIGLX's direct dispatch table manipulation don't talk to
* each other. We need to set the context to NULL first to avoid
* GLX's no-op context change fast path when switching back to
* GLX.
*/
glXMakeCurrent(glamor_ctx->display, None, None);
glXMakeCurrent(glamor_ctx->display, glamor_ctx->drawable_xid, glXMakeCurrent(glamor_ctx->display, glamor_ctx->drawable_xid,
glamor_ctx->ctx); glamor_ctx->ctx);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment