From e40a2d1f5eeea139e29c27e38495b9c0bf9e39a1 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Thu, 22 Apr 2010 22:03:29 +0200 Subject: gl: Use correct type when uploading images --- src/cairo-gl-surface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3