From 628e9bad92673c27a974649ee18c48483003347a Mon Sep 17 00:00:00 2001 From: Ryan Houdek Date: Tue, 26 Jan 2016 07:35:17 -0600 Subject: Support a headless EGL option. This is a new option to support completely headless running of Dolphin without X11 on systems that can properly support it. --- Source/Core/Common/GL/GLInterface/GLInterface.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Source/Core/Common/GL/GLInterface/GLInterface.cpp') diff --git a/Source/Core/Common/GL/GLInterface/GLInterface.cpp b/Source/Core/Common/GL/GLInterface/GLInterface.cpp index b9a05fd30a..6d4345e5c1 100644 --- a/Source/Core/Common/GL/GLInterface/GLInterface.cpp +++ b/Source/Core/Common/GL/GLInterface/GLInterface.cpp @@ -18,6 +18,8 @@ #else #include "Common/GL/GLInterface/GLX.h" #endif +#elif defined(USE_EGL) && USE_EGL && defined(USE_HEADLESS) +#include "Common/GL/GLInterface/EGL.h" #else #error Platform doesnt have a GLInterface #endif @@ -30,6 +32,8 @@ std::unique_ptr HostGL_CreateGLInterface() return std::make_unique(); #elif defined(_WIN32) return std::make_unique(); + #elif defined(USE_EGL) && defined(USE_HEADLESS) + return std::make_unique(); #elif defined(HAVE_X11) && HAVE_X11 #if defined(USE_EGL) && USE_EGL return std::make_unique(); -- cgit v1.2.3