From e4f84f97b2f5d37bc1fb7dd510df733053ffe624 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Tue, 20 Apr 2010 21:33:50 +0200 Subject: [PATCH] gl: Don't acquire the gl context twice --- src/cairo-gl-surface.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/cairo-gl-surface.c b/src/cairo-gl-surface.c index 8152d252a..b87823543 100644 --- a/src/cairo-gl-surface.c +++ b/src/cairo-gl-surface.c @@ -798,11 +798,6 @@ _cairo_gl_surface_draw_image (cairo_gl_surface_t *dst, } else { GLuint tex; float vertices[8], texcoords[8]; - cairo_gl_context_t *ctx; - - status = _cairo_gl_context_acquire (dst->base.device, &ctx); - if (unlikely (status)) - goto fail; if (ctx->using_glsl) { cairo_gl_shader_program_t *program; @@ -879,8 +874,6 @@ _cairo_gl_surface_draw_image (cairo_gl_surface_t *dst, _cairo_gl_use_program (NULL); glDeleteTextures (1, &tex); glDisable (ctx->tex_target); - - _cairo_gl_context_release (ctx); } fail: