From 617e52436ac52dfbdacd8d6f7d9f43d51b85af3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Fri, 14 Mar 2014 13:07:17 +0100 Subject: [PATCH] Fix ES build. --- src/Magnum/Context.cpp | 2 ++ src/Magnum/Platform/magnum-info.cpp | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/src/Magnum/Context.cpp b/src/Magnum/Context.cpp index 4142ee6b6..2e6be867a 100644 --- a/src/Magnum/Context.cpp +++ b/src/Magnum/Context.cpp @@ -518,7 +518,9 @@ Debug operator<<(Debug debug, const Context::Flag value) { switch(value) { #define _c(value) case Context::Flag::value: return debug << "Context::Flag::" #value; _c(Debug) + #ifndef MAGNUM_TARGET_GLES _c(RobustAccess) + #endif #undef _c } diff --git a/src/Magnum/Platform/magnum-info.cpp b/src/Magnum/Platform/magnum-info.cpp index 2f7ab955c..999de991a 100644 --- a/src/Magnum/Platform/magnum-info.cpp +++ b/src/Magnum/Platform/magnum-info.cpp @@ -142,7 +142,11 @@ MagnumInfo::MagnumInfo(const Arguments& arguments): Platform::WindowlessApplicat Debug() << "OpenGL version:" << c->version() << '(' + c->versionString() + ')'; Debug() << "Context flags:"; + #ifndef MAGNUM_TARGET_GLES for(const auto flag: {Context::Flag::Debug, Context::Flag::RobustAccess}) + #else + for(const auto flag: {Context::Flag::Debug}) + #endif if(c->flags() & flag) Debug() << " " << flag; Debug() << "Supported GLSL versions:";