summaryrefslogtreecommitdiff
path: root/include/mbgl/platform/default/headless_display.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/mbgl/platform/default/headless_display.hpp')
-rw-r--r--include/mbgl/platform/default/headless_display.hpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/include/mbgl/platform/default/headless_display.hpp b/include/mbgl/platform/default/headless_display.hpp
index 45646d754a..e0fc8e17ea 100644
--- a/include/mbgl/platform/default/headless_display.hpp
+++ b/include/mbgl/platform/default/headless_display.hpp
@@ -4,9 +4,10 @@
#if MBGL_USE_CGL
#include <OpenGL/OpenGL.h>
-#elif MBGL_USE_GLX
-typedef struct _XDisplay Display;
-typedef struct __GLXFBConfigRec* GLXFBConfig;
+#endif
+
+#if MBGL_USE_EGL
+#include <EGL/egl.h>
#endif
namespace mbgl {
@@ -21,8 +22,6 @@ public:
#endif
#if MBGL_USE_EGL
- int fd;
- struct gbm_device *gbm = nullptr;
EGLDisplay dpy = 0;
EGLConfig config = 0;
#endif