mirror of
https://github.com/brl/mutter.git
synced 2025-02-23 08:24:09 +00:00
cogl: Fix build without X11
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2354>
This commit is contained in:
parent
a81b2a49ed
commit
9ba510646c
@ -36,6 +36,7 @@
|
|||||||
#include "cogl-framebuffer-private.h"
|
#include "cogl-framebuffer-private.h"
|
||||||
#include "cogl-attribute-private.h"
|
#include "cogl-attribute-private.h"
|
||||||
#include "cogl-sampler-cache-private.h"
|
#include "cogl-sampler-cache-private.h"
|
||||||
|
#include "cogl-texture-private.h"
|
||||||
|
|
||||||
typedef struct _CoglDriverVtable CoglDriverVtable;
|
typedef struct _CoglDriverVtable CoglDriverVtable;
|
||||||
|
|
||||||
|
@ -29,9 +29,9 @@
|
|||||||
|
|
||||||
#include "cogl-config.h"
|
#include "cogl-config.h"
|
||||||
|
|
||||||
|
#include "cogl-context-private.h"
|
||||||
#include "cogl-fence.h"
|
#include "cogl-fence.h"
|
||||||
#include "cogl-fence-private.h"
|
#include "cogl-fence-private.h"
|
||||||
#include "cogl-context-private.h"
|
|
||||||
#include "winsys/cogl-winsys-private.h"
|
#include "winsys/cogl-winsys-private.h"
|
||||||
|
|
||||||
#define FENCE_CHECK_TIMEOUT 5000 /* microseconds */
|
#define FENCE_CHECK_TIMEOUT 5000 /* microseconds */
|
||||||
|
@ -99,7 +99,7 @@ create_onscreen (CoglContext *cogl_context,
|
|||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
case COGL_WINSYS_ID_EGL_XLIB:
|
case COGL_WINSYS_ID_EGL_XLIB:
|
||||||
#ifdef COGL_HAS_EGL_SUPPORT
|
#ifdef COGL_HAS_EGL_PLATFORM_XLIB_SUPPORT
|
||||||
return COGL_ONSCREEN (cogl_onscreen_xlib_new (cogl_context,
|
return COGL_ONSCREEN (cogl_onscreen_xlib_new (cogl_context,
|
||||||
width, height));
|
width, height));
|
||||||
#else
|
#else
|
||||||
|
@ -135,6 +135,10 @@ if have_xwayland and not have_wayland
|
|||||||
error('XWayland support requires Wayland support enabled')
|
error('XWayland support requires Wayland support enabled')
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
if not have_wayland and not have_x11
|
||||||
|
error('A Wayland/X11 backend must be enabled')
|
||||||
|
endif
|
||||||
|
|
||||||
if have_x11_client
|
if have_x11_client
|
||||||
x11_dep = dependency('x11')
|
x11_dep = dependency('x11')
|
||||||
xcomposite_dep = dependency('xcomposite', version: xcomposite_req)
|
xcomposite_dep = dependency('xcomposite', version: xcomposite_req)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user