mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-20 13:50:11 +01:00
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:
parent
fdb6afe71e
commit
828c3cf002
1 changed files with 4 additions and 0 deletions
|
|
@ -49,6 +49,8 @@
|
||||||
#include "hgl/hgl_sw_winsys.h"
|
#include "hgl/hgl_sw_winsys.h"
|
||||||
#include "hgl_context.h"
|
#include "hgl_context.h"
|
||||||
|
|
||||||
|
#include <Bitmap.h>
|
||||||
|
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#include "target-helpers/inline_sw_helper.h"
|
#include "target-helpers/inline_sw_helper.h"
|
||||||
}
|
}
|
||||||
|
|
@ -239,6 +241,8 @@ haiku_swap_buffers(_EGLDisplay *disp, _EGLSurface *surf)
|
||||||
|
|
||||||
update_size(buffer);
|
update_size(buffer);
|
||||||
|
|
||||||
|
st_context_invalidate_state(st, ST_INVALIDATE_FB_STATE);
|
||||||
|
|
||||||
return EGL_TRUE;
|
return EGL_TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue