mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-08 10:08:00 +02:00
compositor: Correctly calculate changed sub image rectangle
When calling glTexSubImage2D for sub image updates for SHM surfaces the changed rectangle was being wrongly calculated. This resulted in interesting redraw artefacts for clients using SHM.
This commit is contained in:
parent
0fe782bdb5
commit
8f24156926
1 changed files with 1 additions and 1 deletions
|
|
@ -1001,7 +1001,7 @@ update_shm_texture(struct weston_surface *surface)
|
|||
glPixelStorei(GL_UNPACK_SKIP_ROWS, rectangles[i].y1);
|
||||
glTexSubImage2D(GL_TEXTURE_2D, 0,
|
||||
rectangles[i].x1, rectangles[i].y1,
|
||||
rectangles[i].x2 - rectangles[i].y1,
|
||||
rectangles[i].x2 - rectangles[i].x1,
|
||||
rectangles[i].y2 - rectangles[i].y1,
|
||||
GL_BGRA_EXT, GL_UNSIGNED_BYTE, data);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue