Skip to content

Commit

Permalink
gl: Make drawing to windows work again
Browse files Browse the repository at this point in the history
The correct MIN/MAG_FILTER wasn't set.
  • Loading branch information
Benjamin Otte committed Apr 23, 2010
1 parent 3efbc0c commit 49b52a8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/cairo-gl-surface.c
Original file line number Diff line number Diff line change
Expand Up @@ -822,6 +822,8 @@ _cairo_gl_surface_draw_image (cairo_gl_surface_t *dst,
glGenTextures (1, &tex);
glActiveTexture (GL_TEXTURE0);
glBindTexture (ctx->tex_target, tex);
glTexParameteri (ctx->tex_target, GL_TEXTURE_MIN_FILTER, GL_NEAREST);
glTexParameteri (ctx->tex_target, GL_TEXTURE_MAG_FILTER, GL_NEAREST);
glTexImage2D (ctx->tex_target, 0, internal_format, width, height, 0,
format, type, src->data + src_y * src->stride + src_x * cpp);

Expand Down

0 comments on commit 49b52a8

Please sign in to comment.