summaryrefslogtreecommitdiff
path: root/Source/Core/Common/GL/GLInterface/GLInterface.cpp
diff options
context:
space:
mode:
authorRyan Houdek <Sonicadvance1@gmail.com>2016-02-05 10:53:32 -0600
committerRyan Houdek <Sonicadvance1@gmail.com>2016-02-05 10:53:32 -0600
commit018625e54f8a1f9045cdcaca822034888083ae36 (patch)
treee4be34321da1b2ae58e00616033c02d2af1cff81 /Source/Core/Common/GL/GLInterface/GLInterface.cpp
parent38cb6ba6dcf8933dfe2c226615fa184a8bdf38e7 (diff)
Rearrange GLInterface interface generation.
This will be important when we enable headless on Android
Diffstat (limited to 'Source/Core/Common/GL/GLInterface/GLInterface.cpp')
-rw-r--r--Source/Core/Common/GL/GLInterface/GLInterface.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/Source/Core/Common/GL/GLInterface/GLInterface.cpp b/Source/Core/Common/GL/GLInterface/GLInterface.cpp
index 6d4345e5c1..c7f2169c5a 100644
--- a/Source/Core/Common/GL/GLInterface/GLInterface.cpp
+++ b/Source/Core/Common/GL/GLInterface/GLInterface.cpp
@@ -6,9 +6,7 @@
#include "Common/GL/GLInterfaceBase.h"
-#ifdef ANDROID
-#include "Common/GL/GLInterface/EGLAndroid.h"
-#elif defined(__APPLE__)
+#if defined(__APPLE__)
#include "Common/GL/GLInterface/AGL.h"
#elif defined(_WIN32)
#include "Common/GL/GLInterface/WGL.h"
@@ -20,15 +18,15 @@
#endif
#elif defined(USE_EGL) && USE_EGL && defined(USE_HEADLESS)
#include "Common/GL/GLInterface/EGL.h"
+#elif ANDROID
+#include "Common/GL/GLInterface/EGLAndroid.h"
#else
#error Platform doesnt have a GLInterface
#endif
std::unique_ptr<cInterfaceBase> HostGL_CreateGLInterface()
{
- #ifdef ANDROID
- return std::make_unique<cInterfaceEGLAndroid>();
- #elif defined(__APPLE__)
+ #if defined(__APPLE__)
return std::make_unique<cInterfaceAGL>();
#elif defined(_WIN32)
return std::make_unique<cInterfaceWGL>();
@@ -40,6 +38,8 @@ std::unique_ptr<cInterfaceBase> HostGL_CreateGLInterface()
#else
return std::make_unique<cInterfaceGLX>();
#endif
+ #elif ANDROID
+ return std::make_unique<cInterfaceEGLAndroid>();
#else
return nullptr;
#endif