mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 21:50:12 +01:00
st/egl/wayland: Take resize parameters only if size changes
This matches what we do in egl_dri2, and clients should behave like this anyway.
This commit is contained in:
parent
7587c140cd
commit
87c3bb65bb
1 changed files with 3 additions and 5 deletions
|
|
@ -195,13 +195,11 @@ wayland_window_surface_handle_resize(struct wayland_surface *surface)
|
|||
wl_buffer_destroy(surface->buffer[i]);
|
||||
surface->buffer[i] = NULL;
|
||||
}
|
||||
|
||||
surface->dx = surface->win->dx;
|
||||
surface->dy = surface->win->dy;
|
||||
}
|
||||
pipe_resource_reference(&front_resource, NULL);
|
||||
|
||||
surface->dx = surface->win->dx;
|
||||
surface->dy = surface->win->dy;
|
||||
surface->win->dx = 0;
|
||||
surface->win->dy = 0;
|
||||
}
|
||||
|
||||
static boolean
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue