1
0
Fork 0

cogl_texture_get_data() copies using wrong width size.

For sliced 2D textures, _cogl_texture_2d_sliced_get_data() uses the
bitmap width, instead of the rowstride, when memcpy()ing into the
dest buffer.

Signed-off-by: Robert Bragg <robert@linux.intel.com>
This commit is contained in:
Sunil Sadasivan 2010-05-13 00:59:06 -07:00 committed by Robert Bragg
parent 98f2d2516b
commit 4abd42aced

View file

@ -1710,7 +1710,7 @@ _cogl_texture_2d_sliced_get_data (CoglTexture *tex,
{
src = new_bmp.data + y * new_bmp.rowstride;
dst = data + y * rowstride;
memcpy (dst, src, new_bmp.width);
memcpy (dst, src, new_bmp.rowstride);
}
/* Free converted data */