diff --git a/cogl/cogl-texture.c b/cogl/cogl-texture.c index 8f2b3e2fd..7e8087933 100644 --- a/cogl/cogl-texture.c +++ b/cogl/cogl-texture.c @@ -1232,7 +1232,7 @@ cogl_texture_get_data (CoglHandle handle, { src = new_bmp.data + y * new_bmp.rowstride; dst = data + y * rowstride; - memcpy (dst, src, new_bmp.width); + memcpy (dst, src, new_bmp.width * bpp); } /* Free converted data */