diff options
Diffstat (limited to 'glamor/glamor_glx.c')
-rw-r--r-- | glamor/glamor_glx.c | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/glamor/glamor_glx.c b/glamor/glamor_glx.c index d56581cd7..db8e66165 100644 --- a/glamor/glamor_glx.c +++ b/glamor/glamor_glx.c @@ -34,22 +34,13 @@ */ static void -glamor_glx_get_context(struct glamor_context *glamor_ctx) +glamor_glx_make_current(struct glamor_context *glamor_ctx) { - if (glamor_ctx->get_count++) - return; - glXMakeCurrent(glamor_ctx->display, glamor_ctx->drawable_xid, glamor_ctx->ctx); } -static void -glamor_glx_put_context(struct glamor_context *glamor_ctx) -{ - --glamor_ctx->get_count; -} - Bool glamor_glx_screen_init(struct glamor_context *glamor_ctx) { @@ -63,8 +54,7 @@ glamor_glx_screen_init(struct glamor_context *glamor_ctx) glamor_ctx->drawable_xid = glXGetCurrentDrawable(); - glamor_ctx->get_context = glamor_glx_get_context; - glamor_ctx->put_context = glamor_glx_put_context; + glamor_ctx->make_current = glamor_glx_make_current; return True; } |