mirror of
https://github.com/brl/mutter.git
synced 2024-12-25 12:32:05 +00:00
cogl-texture-driver-gles: Fix image height for uploading 3D textures
When uploading a 3D texture with an awkward rowstride, on GLES Cogl will copy the images to an intermediate buffer to pass to GL. However it was using the wrong height when copying the data so it would end up overflowing the buffer and crashing.
This commit is contained in:
parent
01c6ccfa13
commit
1b7c895a2d
@ -285,7 +285,7 @@ _cogl_texture_driver_upload_to_gl_3d (GLenum gl_target,
|
|||||||
0, image_height * i,
|
0, image_height * i,
|
||||||
0, 0,
|
0, 0,
|
||||||
bmp_width,
|
bmp_width,
|
||||||
bmp_height);
|
height);
|
||||||
|
|
||||||
data = _cogl_bitmap_bind (bmp,
|
data = _cogl_bitmap_bind (bmp,
|
||||||
COGL_BUFFER_ACCESS_READ, 0);
|
COGL_BUFFER_ACCESS_READ, 0);
|
||||||
|
Loading…
Reference in New Issue
Block a user