diff --git a/src/Magnum/GL/Test/AbstractShaderProgramGLTest.cpp b/src/Magnum/GL/Test/AbstractShaderProgramGLTest.cpp index 838145505..0c6122d74 100644 --- a/src/Magnum/GL/Test/AbstractShaderProgramGLTest.cpp +++ b/src/Magnum/GL/Test/AbstractShaderProgramGLTest.cpp @@ -578,6 +578,9 @@ MyDoubleShader::MyDoubleShader() { #endif void AbstractShaderProgramGLTest::uniformDouble() { + if(!Context::current().isExtensionSupported()) + CORRADE_SKIP(Extensions::ARB::gpu_shader_fp64::string() + std::string{" is not supported."}); + MyDoubleShader shader; MAGNUM_VERIFY_NO_GL_ERROR(); @@ -588,6 +591,9 @@ void AbstractShaderProgramGLTest::uniformDouble() { } void AbstractShaderProgramGLTest::uniformDoubleVector() { + if(!Context::current().isExtensionSupported()) + CORRADE_SKIP(Extensions::ARB::gpu_shader_fp64::string() + std::string{" is not supported."}); + MyDoubleShader shader; MAGNUM_VERIFY_NO_GL_ERROR(); @@ -598,6 +604,9 @@ void AbstractShaderProgramGLTest::uniformDoubleVector() { } void AbstractShaderProgramGLTest::uniformDoubleMatrix() { + if(!Context::current().isExtensionSupported()) + CORRADE_SKIP(Extensions::ARB::gpu_shader_fp64::string() + std::string{" is not supported."}); + MyDoubleShader shader; MAGNUM_VERIFY_NO_GL_ERROR(); @@ -608,6 +617,9 @@ void AbstractShaderProgramGLTest::uniformDoubleMatrix() { } void AbstractShaderProgramGLTest::uniformDoubleArray() { + if(!Context::current().isExtensionSupported()) + CORRADE_SKIP(Extensions::ARB::gpu_shader_fp64::string() + std::string{" is not supported."}); + MyDoubleShader shader; MAGNUM_VERIFY_NO_GL_ERROR();