From 828c3cf002ba4901ef65cd0665149d14c30df1d8 Mon Sep 17 00:00:00 2001 From: X512 Date: Fri, 26 Jul 2024 04:45:27 +0900 Subject: [PATCH] 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: --- src/egl/drivers/haiku/egl_haiku.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/egl/drivers/haiku/egl_haiku.cpp b/src/egl/drivers/haiku/egl_haiku.cpp index 62d2fb5c3cd..6ca5241c815 100644 --- a/src/egl/drivers/haiku/egl_haiku.cpp +++ b/src/egl/drivers/haiku/egl_haiku.cpp @@ -49,6 +49,8 @@ #include "hgl/hgl_sw_winsys.h" #include "hgl_context.h" +#include + 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; }