From e64adb73a89b95a9840e66ccc03caa57c23d1bde Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sun, 26 May 2019 18:56:22 +0200 Subject: [PATCH] Platform: test explicitly enabled extensions in EmscriptenApplication. --- .../Platform/Test/EmscriptenApplicationTest.cpp | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/Magnum/Platform/Test/EmscriptenApplicationTest.cpp b/src/Magnum/Platform/Test/EmscriptenApplicationTest.cpp index 6c929789c..42ceb6968 100644 --- a/src/Magnum/Platform/Test/EmscriptenApplicationTest.cpp +++ b/src/Magnum/Platform/Test/EmscriptenApplicationTest.cpp @@ -27,14 +27,21 @@ #include "Magnum/Platform/EmscriptenApplication.h" #include "Magnum/GL/Renderer.h" #include "Magnum/GL/DefaultFramebuffer.h" +#include "Magnum/GL/Mesh.h" namespace Magnum { namespace Platform { namespace Test { struct EmscriptenApplicationTest: Platform::Application { /* For testing resize events */ explicit EmscriptenApplicationTest(const Arguments& arguments): - Platform::Application{arguments, Configuration{} - .setWindowFlags(Configuration::WindowFlag::Resizable)} { + Platform::Application{arguments, + Configuration{}.setWindowFlags(Configuration::WindowFlag::Resizable) + //, GLConfiguration{}.setFlags({}) + } { + + /* This uses a VAO on WebGL 1, so it will crash in case GL flags are + missing EnableExtensionsByDefault (uncomment above) */ + GL::Mesh mesh; } virtual void drawEvent() override {