mirror of
https://github.com/brl/mutter.git
synced 2024-11-22 16:10:41 -05:00
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:
parent
98f2d2516b
commit
4abd42aced
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user