diff options
author | Benjamin Otte <otte@redhat.com> | 2010-04-20 21:33:50 +0200 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2010-04-23 21:45:56 +0200 |
commit | e4f84f97b2f5d37bc1fb7dd510df733053ffe624 (patch) | |
tree | b382206f6473887cf258899c5c309608fc7314b0 | |
parent | e40a2d1f5eeea139e29c27e38495b9c0bf9e39a1 (diff) |
gl: Don't acquire the gl context twice
-rw-r--r-- | src/cairo-gl-surface.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/cairo-gl-surface.c b/src/cairo-gl-surface.c index 8152d252..b8782354 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: |