From 90c727c0258acca09bdf9c17f9df69177579897c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sun, 22 Sep 2019 19:07:16 +0200 Subject: [PATCH] GL: test for ARB_gpu_shader_fp64 in tests that need it. --- src/Magnum/GL/Test/AbstractShaderProgramGLTest.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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();