Skip to content

wayland/buffer: Only query Wayland EGL buffer if display bound

It's not allowed to call eglQueryWaylandBuffer() if the call to eglBindWaylandDisplay() fail, and will result in an assert being hit in mesa if called.

Avoid that by keeping track whether we succeeded to bind, and only attempt to realize a legacy EGL wl_buffer if binding succeeded.


This avoids an assert in mesa.

Merge request reports

Loading