egl/haiku: Fix potential crash if double buffering is disabled
authorAlexander von Gluck IV <kallisti5@unixzen.com>
Fri, 9 Jun 2023 16:48:44 +0000 (11:48 -0500)
committerMarge Bot <emma+marge@anholt.net>
Wed, 21 Jun 2023 21:18:28 +0000 (21:18 +0000)
commit4b48d377badc6871237583e2fdea16063e686308
treef76b0d35829f65e33c6b8ec8a5d39f36b42e090b
parent2089fc8188635ed0ee72e2ddc009e7a775210bb7
egl/haiku: Fix potential crash if double buffering is disabled

* Don't assume the existence of the back buffer in swap_buffers

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23556>
src/egl/drivers/haiku/egl_haiku.cpp