From dec3d74d8a45c0e972b44cd1aa88ff3decc6e841 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Wed, 24 Feb 2021 22:54:33 +0100 Subject: [PATCH] GL: MSVC 2015, don't die yet. --- src/Magnum/GL/Context.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/Magnum/GL/Context.cpp b/src/Magnum/GL/Context.cpp index d86aa5b35..f1ad5c139 100644 --- a/src/Magnum/GL/Context.cpp +++ b/src/Magnum/GL/Context.cpp @@ -533,7 +533,13 @@ constexpr Extension ExtensionListES320[]{ }; #endif -constexpr struct { +#ifdef CORRADE_MSVC2015_COMPATIBILITY +/* MSVC 2015 ICEs in the loop below if this is constexpr. Don't, then. */ +const +#else +constexpr +#endif +struct { Version version; Containers::ArrayView extensions; } KnownExtensionsForVersion[]{