egl/haiku: fix synchronization problems, add missing header

`st_context_invalidate_state` call is required when changing buffer attachments.

Including header with BBitmap class definition is required to properly
call C++ destructor.

Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30372>
This commit is contained in:
X512 2024-07-26 04:45:27 +09:00 committed by Marge Bot
parent fdb6afe71e
commit 828c3cf002

View file

@ -49,6 +49,8 @@
#include "hgl/hgl_sw_winsys.h"
#include "hgl_context.h"
#include <Bitmap.h>
extern "C" {
#include "target-helpers/inline_sw_helper.h"
}
@ -239,6 +241,8 @@ haiku_swap_buffers(_EGLDisplay *disp, _EGLSurface *surf)
update_size(buffer);
st_context_invalidate_state(st, ST_INVALIDATE_FB_STATE);
return EGL_TRUE;
}