Browse Source

GL: test for ARB_gpu_shader_fp64 in tests that need it.

findsdl-include-root
Vladimír Vondruš 7 years ago
parent
commit
90c727c025
  1. 12
      src/Magnum/GL/Test/AbstractShaderProgramGLTest.cpp

12
src/Magnum/GL/Test/AbstractShaderProgramGLTest.cpp

@ -578,6 +578,9 @@ MyDoubleShader::MyDoubleShader() {
#endif
void AbstractShaderProgramGLTest::uniformDouble() {
if(!Context::current().isExtensionSupported<Extensions::ARB::gpu_shader_fp64>())
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<Extensions::ARB::gpu_shader_fp64>())
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<Extensions::ARB::gpu_shader_fp64>())
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<Extensions::ARB::gpu_shader_fp64>())
CORRADE_SKIP(Extensions::ARB::gpu_shader_fp64::string() + std::string{" is not supported."});
MyDoubleShader shader;
MAGNUM_VERIFY_NO_GL_ERROR();

Loading…
Cancel
Save