Mesa (master): mesa: fix queryobj whitespace.

Dave Airlie airlied at kemper.freedesktop.org
Sat Dec 18 07:55:04 UTC 2010


Module: Mesa
Branch: master
Commit: aa4d3118734566881e49c8bd962da94630450512
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=aa4d3118734566881e49c8bd962da94630450512

Author: Dave Airlie <airlied at redhat.com>
Date:   Sat Dec 18 17:48:21 2010 +1000

mesa: fix queryobj whitespace.

Had done this before pushing but forgot to amend, doh.

---

 src/mesa/main/queryobj.c |   52 +++++++++++++++++++++++-----------------------
 1 files changed, 26 insertions(+), 26 deletions(-)

diff --git a/src/mesa/main/queryobj.c b/src/mesa/main/queryobj.c
index ca829b0..66fb598 100644
--- a/src/mesa/main/queryobj.c
+++ b/src/mesa/main/queryobj.c
@@ -383,19 +383,19 @@ _mesa_GetQueryObjectivARB(GLuint id, GLenum pname, GLint *params)
          if (!q->Ready)
             ctx->Driver.WaitQuery(ctx, q);
          /* if result is too large for returned type, clamp to max value */
-	 if (q->Target == GL_ANY_SAMPLES_PASSED) {
-	    if (q->Result)
-	       *params = GL_TRUE;
-	    else
-	       *params = GL_FALSE;
-	 } else {
-	    if (q->Result > 0x7fffffff) {
-	       *params = 0x7fffffff;
-	    }
-	    else {
-	       *params = (GLint)q->Result;
-	    }
-	 }
+         if (q->Target == GL_ANY_SAMPLES_PASSED) {
+            if (q->Result)
+               *params = GL_TRUE;
+            else
+               *params = GL_FALSE;
+         } else {
+            if (q->Result > 0x7fffffff) {
+               *params = 0x7fffffff;
+            }
+            else {
+               *params = (GLint)q->Result;
+            }
+         }
          break;
       case GL_QUERY_RESULT_AVAILABLE_ARB:
 	 if (!q->Ready)
@@ -430,19 +430,19 @@ _mesa_GetQueryObjectuivARB(GLuint id, GLenum pname, GLuint *params)
          if (!q->Ready)
             ctx->Driver.WaitQuery(ctx, q);
          /* if result is too large for returned type, clamp to max value */
-	 if (q->Target == GL_ANY_SAMPLES_PASSED) {
-	    if (q->Result)
-	       *params = GL_TRUE;
-	    else
-	       *params = GL_FALSE;
-	 } else {
-	    if (q->Result > 0xffffffff) {
-	       *params = 0xffffffff;
-	    }
-	    else {
-	       *params = (GLuint)q->Result;
-	    }
-	 }
+         if (q->Target == GL_ANY_SAMPLES_PASSED) {
+            if (q->Result)
+               *params = GL_TRUE;
+            else
+               *params = GL_FALSE;
+         } else {
+            if (q->Result > 0xffffffff) {
+               *params = 0xffffffff;
+            }
+            else {
+               *params = (GLuint)q->Result;
+            }
+         }
          break;
       case GL_QUERY_RESULT_AVAILABLE_ARB:
 	 if (!q->Ready)




More information about the mesa-commit mailing list