mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-27 08:05:41 +00:00
GL/ContextEGL: Fix compiling with both DRM/KMS and X11 enabled
This commit is contained in:
parent
dac9cdd04c
commit
cbdf722dd6
|
@ -162,6 +162,11 @@ if(USE_EGL)
|
||||||
gl/context_egl_x11.cpp
|
gl/context_egl_x11.cpp
|
||||||
gl/context_egl_x11.h
|
gl/context_egl_x11.h
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# We set EGL_NO_X11 because otherwise X comes in with its macros and breaks
|
||||||
|
# a bunch of files from compiling, if we include the EGL headers. This just
|
||||||
|
# makes the data types opaque, we can still use it with X11 if needed.
|
||||||
|
target_compile_definitions(common PRIVATE "-DEGL_NO_X11=1")
|
||||||
endif()
|
endif()
|
||||||
if(ANDROID AND USE_EGL)
|
if(ANDROID AND USE_EGL)
|
||||||
target_sources(common PRIVATE
|
target_sources(common PRIVATE
|
||||||
|
|
|
@ -16,16 +16,16 @@ Log_SetChannel(GL::Context);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef USE_EGL
|
#ifdef USE_EGL
|
||||||
#if defined(USE_X11) || defined(USE_WAYLAND) || defined(USE_GBM)
|
#if defined(USE_WAYLAND) || defined(USE_GBM) || defined(USE_X11)
|
||||||
#if defined(USE_X11)
|
|
||||||
#include "context_egl_x11.h"
|
|
||||||
#endif
|
|
||||||
#if defined(USE_WAYLAND)
|
#if defined(USE_WAYLAND)
|
||||||
#include "context_egl_wayland.h"
|
#include "context_egl_wayland.h"
|
||||||
#endif
|
#endif
|
||||||
#if defined(USE_GBM)
|
#if defined(USE_GBM)
|
||||||
#include "context_egl_gbm.h"
|
#include "context_egl_gbm.h"
|
||||||
#endif
|
#endif
|
||||||
|
#if defined(USE_X11)
|
||||||
|
#include "context_egl_x11.h"
|
||||||
|
#endif
|
||||||
#elif defined(ANDROID)
|
#elif defined(ANDROID)
|
||||||
#include "context_egl_android.h"
|
#include "context_egl_android.h"
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Reference in a new issue