Skip to content

Commit 77dcdc9

Browse files
Jean-Baptiste QueruAndroid Code Review
authored andcommitted
Merge "Use stride for source and target buffers when copybit is enabled."
2 parents 8942a31 + 8999515 commit 77dcdc9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

opengl/libagl/egl.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -485,13 +485,13 @@ void egl_window_surface_v2_t::copyBlt(
485485
copybit_device_t* const copybit = blitengine;
486486
if (copybit) {
487487
copybit_image_t simg;
488-
simg.w = src->width;
488+
simg.w = src->stride;
489489
simg.h = src->height;
490490
simg.format = src->format;
491491
simg.handle = const_cast<native_handle_t*>(src->handle);
492492

493493
copybit_image_t dimg;
494-
dimg.w = dst->width;
494+
dimg.w = dst->stride;
495495
dimg.h = dst->height;
496496
dimg.format = dst->format;
497497
dimg.handle = const_cast<native_handle_t*>(dst->handle);

0 commit comments

Comments
 (0)