diff options
author | Benjamin Otte <otte@redhat.com> | 2010-04-22 22:03:29 +0200 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2010-04-23 21:45:01 +0200 |
commit | e40a2d1f5eeea139e29c27e38495b9c0bf9e39a1 (patch) | |
tree | 98adbe7da960807c913299395fc66d93c1f1d234 | |
parent | 55cf323f963bbcc11bcc290eaf71656e1ba91efd (diff) |
gl: Use correct type when uploading images
-rw-r--r-- | src/cairo-gl-surface.c | 2 |
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 |