From d433d592e17147dae9d4924a0197ab39a865881c Mon Sep 17 00:00:00 2001 From: twinaphex Date: Mon, 17 Apr 2017 00:26:02 +0200 Subject: [PATCH] Do this workaround for now - for Android/Emscripten --- gfx/common/egl_common.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gfx/common/egl_common.c b/gfx/common/egl_common.c index 2bed90a07e..7cf64587ac 100644 --- a/gfx/common/egl_common.c +++ b/gfx/common/egl_common.c @@ -260,6 +260,7 @@ static bool check_egl_client_extension(const char *name) static EGLDisplay get_egl_display(EGLenum platform, void *native) { +#if !defined(ANDROID) && !defined(EMSCRIPTEN) if (platform != EGL_NONE) { /* If the client library supports at least EGL 1.5, then we can call @@ -297,6 +298,7 @@ static EGLDisplay get_egl_display(EGLenum platform, void *native) } } } +#endif /* Either the caller didn't provide a platform type, or the EGL * implementation doesn't support eglGetPlatformDisplay. In this case, try