diff options
author | Alex Deucher <alexdeucher@gmail.com> | 2009-10-22 12:02:31 -0400 |
---|---|---|
committer | Alex Deucher <alexdeucher@gmail.com> | 2009-10-22 12:02:31 -0400 |
commit | 5e77b61e393144e76fe0a280c3c5da2d36703bbb (patch) | |
tree | 5e00d6cd9ad0ac0a1c80891fd671b2a45baf125f /progs/trivial/tri-query.c | |
parent | c4af8ce69e1a7105b0178da8a085b73ab984e432 (diff) | |
parent | 869e20bcb7db9c6540eb6b538104303df738d302 (diff) |
Merge branch 'mesa_7_6_branch' of git+ssh://agd5f@git.freedesktop.org/git/mesa/mesa
Diffstat (limited to 'progs/trivial/tri-query.c')
-rw-r--r-- | progs/trivial/tri-query.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/progs/trivial/tri-query.c b/progs/trivial/tri-query.c index 85e39df2df..94956a86f3 100644 --- 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)); |