projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4b2cf92
)
progs/trivial: check if GL_ARB_occlusion_query is supported
author
Brian Paul
<brianp@vmware.com>
Tue, 20 Oct 2009 22:22:03 +0000
(16:22 -0600)
committer
Brian Paul
<brianp@vmware.com>
Tue, 20 Oct 2009 22:22:03 +0000
(16:22 -0600)
progs/trivial/tri-query.c
patch
|
blob
|
history
diff --git
a/progs/trivial/tri-query.c
b/progs/trivial/tri-query.c
index 85e39df2dfaf1d99adec63ba0c2401186af43f38..94956a86f33e201243735f71a5afcb7fd2ec5684 100644
(file)
--- a/
progs/trivial/tri-query.c
+++ b/
progs/trivial/tri-query.c
@@
-39,6
+39,11
@@
GLenum doubleBuffer;
static void Init(void)
{
+ if (!glutExtensionSupported("GL_ARB_occlusion_query")) {
+ fprintf(stderr, "Sorry, this program requires GL_ARB_occlusion_query\n");
+ exit(1);
+ }
+
fprintf(stderr, "GL_RENDERER = %s\n", (char *) glGetString(GL_RENDERER));
fprintf(stderr, "GL_VERSION = %s\n", (char *) glGetString(GL_VERSION));
fprintf(stderr, "GL_VENDOR = %s\n", (char *) glGetString(GL_VENDOR));