summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2010-04-22 22:03:29 +0200
committerBenjamin Otte <otte@redhat.com>2010-04-23 21:45:01 +0200
commite40a2d1f5eeea139e29c27e38495b9c0bf9e39a1 (patch)
tree98adbe7da960807c913299395fc66d93c1f1d234
parent55cf323f963bbcc11bcc290eaf71656e1ba91efd (diff)
gl: Use correct type when uploading images
-rw-r--r--src/cairo-gl-surface.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cairo-gl-surface.c b/src/cairo-gl-surface.c
index f366102e..8152d252 100644
--- a/src/cairo-gl-surface.c
+++ b/src/cairo-gl-surface.c
@@ -767,7 +767,7 @@ _cairo_gl_surface_draw_image (cairo_gl_surface_t *dst,
glTexParameteri (ctx->tex_target, GL_TEXTURE_MAG_FILTER, GL_NEAREST);
glTexSubImage2D (ctx->tex_target, 0,
dst_x, dst_y, width, height,
- format, GL_UNSIGNED_BYTE,
+ format, type,
src->data + src_y * src->stride + src_x * cpp);
/* If we just treated some rgb-only data as rgba, then we have to