mesa: fix queryobj whitespace.
authorDave Airlie <airlied@redhat.com>
Sat, 18 Dec 2010 07:48:21 +0000 (17:48 +1000)
committerDave Airlie <airlied@redhat.com>
Sat, 18 Dec 2010 07:48:21 +0000 (17:48 +1000)
Had done this before pushing but forgot to amend, doh.

src/mesa/main/queryobj.c

index ca829b09bd122c45ef1d4b0d7adc043de9dde8cd..66fb59805891cb57ec9d9a890ae2d284c6c8c4ca 100644 (file)
@@ -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)