diff options
author | Erik Faye-Lund <[email protected]> | 2019-03-25 09:47:58 +0100 |
---|---|---|
committer | Erik Faye-Lund <[email protected]> | 2019-10-03 18:58:34 +0000 |
commit | 0103d4747a39ddc46f51cc3e97f85414765913fb (patch) | |
tree | 68d540535de6926064a1ab08b5d1022aa43e8c38 /src | |
parent | 9af6c38deff0f91c6c2a20d61a07a388594a39ac (diff) |
loader/dri3: do not blit outside old/new buffers
Reviewed-by: Michel Dänzer <[email protected]>
Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/loader/loader_dri3_helper.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/loader/loader_dri3_helper.c b/src/loader/loader_dri3_helper.c index e49b39e7d86..3ce47cd3d6b 100644 --- a/src/loader/loader_dri3_helper.c +++ b/src/loader/loader_dri3_helper.c @@ -1841,7 +1841,9 @@ dri3_get_buffer(__DRIdrawable *driDrawable, if (!loader_dri3_blit_image(draw, new_buffer->image, buffer->image, - 0, 0, draw->width, draw->height, + 0, 0, + MIN2(buffer->width, new_buffer->width), + MIN2(buffer->height, new_buffer->height), 0, 0, 0) && !buffer->linear_buffer) { dri3_fence_reset(draw->conn, new_buffer); |