summaryrefslogtreecommitdiff
path: root/tests/system-gl.cc
diff options
context:
space:
mode:
authorUser <don@.localdomain>2011-10-20 11:49:52 (GMT)
committerUser <don@.localdomain>2011-10-20 11:49:52 (GMT)
commit98530546c92294c6effb4b88b12bd3adc86d7c40 (patch)
treed8a9aa491ac7e3765f291ab97300c5aad3af71c7 /tests/system-gl.cc
parent6edeb13595a9236c6030bedefc14c62ba27e6675 (diff)
fix freebsd build
Diffstat (limited to 'tests/system-gl.cc')
-rw-r--r--tests/system-gl.cc12
1 files changed, 9 insertions, 3 deletions
diff --git a/tests/system-gl.cc b/tests/system-gl.cc
index 7000221..fe9bdce 100644
--- a/tests/system-gl.cc
+++ b/tests/system-gl.cc
@@ -21,9 +21,15 @@ void glew_dump() {
cerr << "Extensions: " << endl << " " << extensions << endl;
}
- cerr << " GLEW_ARB_framebuffer_object: " << ((GLEW_ARB_framebuffer_object==1) ? "yes" : "no" ) << endl
- << " GLEW_EXT_framebuffer_object: " << ((GLEW_EXT_framebuffer_object==1) ? "yes" : "no") << endl
- << " GLEW_EXT_packed_depth_stencil: " << ((GLEW_EXT_packed_depth_stencil==1) ? "yes" : "no") << endl;
+ cerr << " GL_ARB_framebuffer_object: "
+ << (glewIsSupported("GL_ARB_framebuffer_object") ? "yes" : "no")
+ << endl
+ << " GL_EXT_framebuffer_object: "
+ << (glewIsSupported("GL_EXT_framebuffer_object") ? "yes" : "no")
+ << endl
+ << " GL_EXT_packed_depth_stencil: "
+ << (glewIsSupported("GL_EXT_packed_depth_stencil") ? "yes" : "no")
+ << endl;
};
const char * gl_errors[] = {
contact: Jan Huwald // Impressum