summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2010-04-22 21:56:31 +0200
committerBenjamin Otte <otte@redhat.com>2010-04-23 21:46:22 +0200
commit49b52a8946cbd5f785f71069313e4a204358887b (patch)
treea4b605ad8c2c39f7dad6cd79d78fbf3cfa2d5213
parent3efbc0c5c850d0cb5c5af5bcabbc7293670ea355 (diff)
gl: Make drawing to windows work again
The correct MIN/MAG_FILTER wasn't set.
-rw-r--r--src/cairo-gl-surface.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cairo-gl-surface.c b/src/cairo-gl-surface.c
index 24a5142f..1c1982ca 100644
--- a/src/cairo-gl-surface.c
+++ b/src/cairo-gl-surface.c
@@ -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);