From c24bae8431fa8001a7d483d1282b96d1b0e6d11a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sat, 21 Dec 2013 13:07:00 +0100 Subject: [PATCH] Fix tests on ES build. --- src/Test/ShaderGLTest.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Test/ShaderGLTest.cpp b/src/Test/ShaderGLTest.cpp index 909f3a03f..43d1d131e 100644 --- a/src/Test/ShaderGLTest.cpp +++ b/src/Test/ShaderGLTest.cpp @@ -46,7 +46,11 @@ void ShaderGLTest::label() { !Context::current()->isExtensionSupported()) CORRADE_SKIP("Required extension is not available"); + #ifndef MAGNUM_TARGET_GLES Shader shader(Version::GL210, Shader::Type::Vertex); + #else + Shader shader(Version::GLES200, Shader::Type::Vertex); + #endif CORRADE_COMPARE(shader.label(), ""); shader.setLabel("MyShader");