Demos (master): arbocclude2: silence some warnings
Brian Paul
brianp at kemper.freedesktop.org
Sat May 14 00:46:46 UTC 2011
Module: Demos
Branch: master
Commit: 318459e20655a63595c65f75643cb14532efef24
URL: http://cgit.freedesktop.org/mesa/demos/commit/?id=318459e20655a63595c65f75643cb14532efef24
Author: Brian Paul <brianp at vmware.com>
Date: Fri May 13 18:45:17 2011 -0600
arbocclude2: silence some warnings
---
src/demos/arbocclude2.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/src/demos/arbocclude2.c b/src/demos/arbocclude2.c
index e3658f7..19c2766 100644
--- a/src/demos/arbocclude2.c
+++ b/src/demos/arbocclude2.c
@@ -37,7 +37,9 @@
static GLboolean Anim = GL_TRUE;
static GLfloat Xpos = 0;
static GLuint OccQuery1;
+#if defined(GL_ARB_occlusion_query2)
static GLuint OccQuery2;
+#endif
static GLint Win = 0;
static GLboolean has_oq2 = GL_FALSE;
@@ -85,7 +87,9 @@ static void Idle(void)
static void Display( void )
{
GLuint passed1;
+#if defined(GL_ARB_occlusion_query2)
GLuint passed2_boolean;
+#endif
GLint ready;
char s[100];
More information about the mesa-commit
mailing list