From 37c5341d643bf7439cdc6a4aa9f9ce2f9f68c52d Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Fri, 18 Mar 2011 10:26:21 +0100 Subject: fix compilation for old but not so old versions of glew --- unsupported/test/openglsupport.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'unsupported/test/openglsupport.cpp') diff --git a/unsupported/test/openglsupport.cpp b/unsupported/test/openglsupport.cpp index 3956c2980..89aaffca8 100644 --- a/unsupported/test/openglsupport.cpp +++ b/unsupported/test/openglsupport.cpp @@ -320,6 +320,7 @@ void test_openglsupport() else std::cerr << "Warning: opengl 3.0 was not tested\n"; + #ifdef GLEW_ARB_gpu_shader_fp64 if(GLEW_ARB_gpu_shader_fp64) { #ifdef GL_ARB_gpu_shader_fp64 @@ -343,6 +344,9 @@ void test_openglsupport() } else std::cerr << "Warning: GLEW_ARB_gpu_shader_fp64 was not tested\n"; + #else + std::cerr << "Warning: GLEW_ARB_gpu_shader_fp64 was not tested\n"; + #endif } } -- cgit v1.2.3