Rehabilitate Haiku support.

This commit is contained in:
waddlesplash
2020-12-12 15:25:51 -05:00
parent 1d489b3fd5
commit 2df11d3911
10 changed files with 155 additions and 3 deletions

View File

@ -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)
{