diff options
author | Alexander von Gluck IV <[email protected]> | 2014-12-22 10:10:13 -0500 |
---|---|---|
committer | Alexander von Gluck IV <[email protected]> | 2014-12-23 09:07:57 -0500 |
commit | 400b833592d9aad7b2c4627a897380642d52189f (patch) | |
tree | 537b8c751497e81f3eb70b2c01ebc2ade3a40ae2 /src/egl/main/egldisplay.c | |
parent | da4fb3e7a11765725a4aaee41de6c79b40637209 (diff) |
egl: Add Haiku code and support
* This is the cleaned up work of the Haiku GCI student
Adrián Arroyo Calle [email protected]
* Several patches were consolidated to prevent
unnecessary touching of non-related code
Diffstat (limited to 'src/egl/main/egldisplay.c')
-rw-r--r-- | src/egl/main/egldisplay.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/egl/main/egldisplay.c b/src/egl/main/egldisplay.c index 76dfee72ab7..a167ae5c738 100644 --- a/src/egl/main/egldisplay.c +++ b/src/egl/main/egldisplay.c @@ -75,7 +75,8 @@ static const struct { { _EGL_PLATFORM_DRM, "drm" }, { _EGL_PLATFORM_FBDEV, "fbdev" }, { _EGL_PLATFORM_NULL, "null" }, - { _EGL_PLATFORM_ANDROID, "android" } + { _EGL_PLATFORM_ANDROID, "android" }, + { _EGL_PLATFORM_HAIKU, "haiku" } }; @@ -177,6 +178,10 @@ _eglNativePlatformDetectNativeDisplay(void *nativeDisplay) /* If not matched to any other platform, fallback to x11. */ return _EGL_PLATFORM_X11; #endif + +#ifdef HAVE_HAIKU_PLATFORM + return _EGL_PLATFORM_HAIKU; +#endif } return _EGL_INVALID_PLATFORM; |