Skip to content

wayland/egl: Ensure correct buffer size when allocating

Jonas Ådahl requested to merge jadahl/mesa:wip/wayland/ensure-back-bo into master

Whenever a buffer is allocated, e.g. by the first draw call or EGL call after a buffer swap, make sure the size is up to date. Prior to this commit, we failed to do so when querying the buffer age, or swapping buffers without any prior EGL call or draw call.

Signed-off-by: Jonas Ådahl jadahl@gmail.com


This fixes a issue gtk4 is seeing, where querying the buffer age after a wl_egl_window_resize() results in the buffer size of the next buffer swap to have the dimensions prior to the resize call.

Merge request reports