diff options
| author | Léo Lam <leo@leolam.fr> | 2021-01-05 16:09:43 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-01-05 16:09:43 +0100 |
| commit | eafb9de0479f6b507063fe78d6ceeeb8343ead66 (patch) | |
| tree | c8cffa23dae823f9efd82196e218ae860f116e72 /Source/Core/Common/GL/GLContext.cpp | |
| parent | 840ecfb32f0ff7e625de7bb1fa98c6259efb4640 (diff) | |
| parent | 2df11d3911284c72cb9ee583945d410028178017 (diff) | |
Merge pull request #9323 from waddlesplash/haiku
Rehabilitate Haiku support.
Diffstat (limited to 'Source/Core/Common/GL/GLContext.cpp')
| -rw-r--r-- | Source/Core/Common/GL/GLContext.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/Core/Common/GL/GLContext.cpp b/Source/Core/Common/GL/GLContext.cpp index 2f72204af8..945008538f 100644 --- a/Source/Core/Common/GL/GLContext.cpp +++ b/Source/Core/Common/GL/GLContext.cpp @@ -12,6 +12,9 @@ #if defined(_WIN32) #include "Common/GL/GLInterface/WGL.h" #endif +#if defined(__HAIKU__) +#include "Common/GL/GLInterface/BGL.h" +#endif #if HAVE_X11 #include "Common/GL/GLInterface/GLX.h" #endif @@ -92,6 +95,10 @@ std::unique_ptr<GLContext> GLContext::Create(const WindowSystemInfo& wsi, bool s if (wsi.type == WindowSystemType::Android) context = std::make_unique<GLContextEGLAndroid>(); #endif +#if defined(__HAIKU__) + if (wsi.type == WindowSystemType::Haiku) + context = std::make_unique<GLContextBGL>(); +#endif #if HAVE_X11 if (wsi.type == WindowSystemType::X11) { |
