summaryrefslogtreecommitdiff
path: root/tests/system-gl.cc
diff options
context:
space:
mode:
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