egl: Add workaround for Mesa <= 22.2
Older Mesa versions with EGL headers missing the change from https://github.com/KhronosGroup/EGL-Registry/pull/130 pull in Xlib headers, causing build issues. This notably happens on the Debian 11 CI image, which until now does not build the shared EGL code due to missing GBM dependencies. That will change in the following commit, thus include a workaround. Suggested-by: Barnabás Pőcze <barnabas.pocze@ideasonboard.com> Signed-off-by: Robert Mader <robert.mader@collabora.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
committed by
Kieran Bingham
parent
0c2ed9ebf9
commit
a5e01866ae
@@ -16,6 +16,12 @@
|
||||
#include <libcamera/base/span.h>
|
||||
#include <libcamera/base/utils.h>
|
||||
|
||||
/*
|
||||
* Workaround for build issues on Mesa <= 22.2, see
|
||||
* https://github.com/KhronosGroup/EGL-Registry/pull/130
|
||||
*/
|
||||
#define EGL_NO_X11
|
||||
|
||||
#define EGL_EGLEXT_PROTOTYPES
|
||||
#include <EGL/egl.h>
|
||||
#include <EGL/eglext.h>
|
||||
|
||||
Reference in New Issue
Block a user