mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-09 07:08:07 +02:00
Clip surface damage to the surface area
Otherwise glTexSubImage2D will reject our co-ordinates as being out of bounds. Signed-off-by: Daniel Stone <daniel@fooishbar.org>
This commit is contained in:
parent
c31f3dd679
commit
d8e8271e94
1 changed files with 5 additions and 0 deletions
|
|
@ -1260,8 +1260,13 @@ surface_commit(struct wl_client *client, struct wl_resource *resource)
|
|||
surface->pending.sy);
|
||||
|
||||
/* wl_surface.damage */
|
||||
pixman_region32_init_rect(&opaque, 0, 0,
|
||||
surface->geometry.width,
|
||||
surface->geometry.height);
|
||||
pixman_region32_union(&surface->damage, &surface->damage,
|
||||
&surface->pending.damage);
|
||||
pixman_region32_intersect(&surface->damage, &surface->damage,
|
||||
&opaque);
|
||||
empty_region(&surface->pending.damage);
|
||||
|
||||
/* wl_surface.set_opaque_region */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue