diff options
| author | Ryan Houdek <Sonicadvance1@gmail.com> | 2016-01-26 07:35:17 -0600 |
|---|---|---|
| committer | Ryan Houdek <Sonicadvance1@gmail.com> | 2016-01-27 15:04:14 -0600 |
| commit | 628e9bad92673c27a974649ee18c48483003347a (patch) | |
| tree | 3a33877e0f9b0da8eb9008fec2a1068473ab61c3 /Source/Core/Common/GL/GLInterface/GLInterface.cpp | |
| parent | 184a7a3e0d2285776e0d4d033adacb7ce27d6887 (diff) | |
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.
Diffstat (limited to 'Source/Core/Common/GL/GLInterface/GLInterface.cpp')
| -rw-r--r-- | Source/Core/Common/GL/GLInterface/GLInterface.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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<cInterfaceBase> HostGL_CreateGLInterface() return std::make_unique<cInterfaceAGL>(); #elif defined(_WIN32) return std::make_unique<cInterfaceWGL>(); + #elif defined(USE_EGL) && defined(USE_HEADLESS) + return std::make_unique<cInterfaceEGL>(); #elif defined(HAVE_X11) && HAVE_X11 #if defined(USE_EGL) && USE_EGL return std::make_unique<cInterfaceEGLX11>(); |
