From 33775e33ca687dbbb95ef49ce53509fcc3389cf9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sun, 22 Dec 2013 23:22:35 +0100 Subject: [PATCH] Fixed compilation of test on ES2. --- src/Test/DebugGLTest.cpp | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/Test/DebugGLTest.cpp b/src/Test/DebugGLTest.cpp index 88cd1f4bb..ea21aef3e 100644 --- a/src/Test/DebugGLTest.cpp +++ b/src/Test/DebugGLTest.cpp @@ -60,8 +60,11 @@ DebugGLTest::DebugGLTest() { void DebugGLTest::insertMessageNoOp() { if(Context::current()->isExtensionSupported() || - Context::current()->isExtensionSupported() || - Context::current()->isExtensionSupported()) + Context::current()->isExtensionSupported() + #ifndef MAGNUM_TARGET_GLES + || Context::current()->isExtensionSupported() + #endif + ) CORRADE_SKIP("The extensions are supported, cannot test."); DebugMessage::insert(DebugMessage::Source::Application, DebugMessage::Type::Marker, @@ -93,8 +96,11 @@ void DebugGLTest::insertMessage() { void DebugGLTest::insertMessageFallback() { if(Context::current()->isExtensionSupported() || - (!Context::current()->isExtensionSupported() && - !Context::current()->isExtensionSupported())) + (!Context::current()->isExtensionSupported() + #ifndef MAGNUM_TARGET_GLES + && !Context::current()->isExtensionSupported() + #endif + )) CORRADE_SKIP("No proper extension is supported"); DebugMessage::insert(DebugMessage::Source::Application, DebugMessage::Type::Marker,