summaryrefslogtreecommitdiff
path: root/Source/Core/Common/GL/GLInterface/GLInterface.cpp
diff options
context:
space:
mode:
authorMatthew Parlane <parlane@gmail.com>2017-03-28 17:19:35 +1300
committerGitHub <noreply@github.com>2017-03-28 17:19:35 +1300
commit85d74a506f6e4024ae1ffdf857d68ebed96fa4a9 (patch)
tree615c4104ef8ab87cdc6267b9f856140eab025aa8 /Source/Core/Common/GL/GLInterface/GLInterface.cpp
parent8c23888968cbc8b513c5b45df5014213ba356bc1 (diff)
parent0831dad467374f11256b5e63ca66b9dff5bf2463 (diff)
Merge pull request #4951 from waddlesplash/haiku-2
Initial support for Haiku.
Diffstat (limited to 'Source/Core/Common/GL/GLInterface/GLInterface.cpp')
-rw-r--r--Source/Core/Common/GL/GLInterface/GLInterface.cpp4
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 e134544311..edd84cc2ab 100644
--- a/Source/Core/Common/GL/GLInterface/GLInterface.cpp
+++ b/Source/Core/Common/GL/GLInterface/GLInterface.cpp
@@ -20,6 +20,8 @@
#include "Common/GL/GLInterface/EGL.h"
#elif ANDROID
#include "Common/GL/GLInterface/EGLAndroid.h"
+#elif defined(__HAIKU__)
+#include "Common/GL/GLInterface/BGL.h"
#else
#error Platform doesnt have a GLInterface
#endif
@@ -40,6 +42,8 @@ std::unique_ptr<cInterfaceBase> HostGL_CreateGLInterface()
#endif
#elif ANDROID
return std::make_unique<cInterfaceEGLAndroid>();
+#elif defined(__HAIKU__)
+ return std::make_unique<cInterfaceBGL>();
#else
return nullptr;
#endif