From 3bfec34cec76acacd9c2dc50077eff5d99411cad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Thu, 10 Oct 2019 15:53:34 +0200 Subject: [PATCH] Platform: EGL_EXT_anything isn't on WebGL anyway. --- src/Magnum/Platform/WindowlessEglApplication.cpp | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/src/Magnum/Platform/WindowlessEglApplication.cpp b/src/Magnum/Platform/WindowlessEglApplication.cpp index ef9e778f2..427556def 100644 --- a/src/Magnum/Platform/WindowlessEglApplication.cpp +++ b/src/Magnum/Platform/WindowlessEglApplication.cpp @@ -41,6 +41,10 @@ #include #endif +/* None of this is in the Emscripten emulation layer, so no need to include + that there */ +#ifndef MAGNUM_TARGET_WEBGL + #ifndef EGL_EXT_device_base typedef void *EGLDeviceEXT; #endif @@ -60,9 +64,11 @@ typedef void* EGLObjectKHR; typedef void* EGLLabelKHR; typedef void (APIENTRY *EGLDEBUGPROCKHR)(EGLenum error, const char* command, EGLint messageType, EGLLabelKHR threadLabel, EGLLabelKHR objectLabel, const char* message); #endif +#endif namespace Magnum { namespace Platform { +#ifndef MAGNUM_TARGET_WEBGL namespace { bool extensionSupported(const char* const extensions, Containers::ArrayView extension) { @@ -75,8 +81,10 @@ bool extensionSupported(const char* const extensions, Containers::ArrayView