diff options
author | Eric Anholt <eric@anholt.net> | 2014-03-14 17:20:12 -0700 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2014-04-23 10:32:18 -0700 |
commit | b5e394b3f5d80749af0148611df2eb009e7bf823 (patch) | |
tree | 88b18847e08fda9d41b7aa9cc3d72ad2d8eac484 /glamor/glamor_glx.c | |
parent | ab6e958a2e611b03e475c16d10beb9961d8dffc8 (diff) |
glamor: Use lastGLContext to coordinate the context with GLX.
This gets us some more context changes that are needed to make sure
the two sides render to the right drawables and manipulate the right
objects.
Signed-off-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Diffstat (limited to 'glamor/glamor_glx.c')
-rw-r--r-- | glamor/glamor_glx.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/glamor/glamor_glx.c b/glamor/glamor_glx.c index 8f47c3d2c..d56581cd7 100644 --- a/glamor/glamor_glx.c +++ b/glamor/glamor_glx.c @@ -36,15 +36,9 @@ static void glamor_glx_get_context(struct glamor_context *glamor_ctx) { - GLXContext old_ctx; - if (glamor_ctx->get_count++) return; - old_ctx = glXGetCurrentContext(); - if (old_ctx == glamor_ctx->ctx) - return; - glXMakeCurrent(glamor_ctx->display, glamor_ctx->drawable_xid, glamor_ctx->ctx); } |