diff options
-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 |