fix compilation for old but not so old versions of glew

This commit is contained in:
Gael Guennebaud 2011-03-18 10:26:21 +01:00
parent 2359486129
commit 37c5341d64

View File

@ -320,6 +320,7 @@ void test_openglsupport()
else else
std::cerr << "Warning: opengl 3.0 was not tested\n"; std::cerr << "Warning: opengl 3.0 was not tested\n";
#ifdef GLEW_ARB_gpu_shader_fp64
if(GLEW_ARB_gpu_shader_fp64) if(GLEW_ARB_gpu_shader_fp64)
{ {
#ifdef GL_ARB_gpu_shader_fp64 #ifdef GL_ARB_gpu_shader_fp64
@ -343,6 +344,9 @@ void test_openglsupport()
} }
else else
std::cerr << "Warning: GLEW_ARB_gpu_shader_fp64 was not tested\n"; 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
} }
} }