mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-02-14 11:00:28 +01:00
gl: Don't acquire the gl context twice
This commit is contained in:
parent
e40a2d1f5e
commit
e4f84f97b2
1 changed files with 0 additions and 7 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue