Mesa (master): mesa: Fix gross indenting in _mesa_PolygonMode()

Eric Anholt anholt at kemper.freedesktop.org
Thu Mar 30 19:04:21 UTC 2017


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

Author: Lyude <lyude at redhat.com>
Date:   Wed Mar 22 20:51:08 2017 -0400

mesa: Fix gross indenting in _mesa_PolygonMode()

Signed-off-by: Lyude <lyude at redhat.com>
Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>

---

 src/mesa/main/polygon.c | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/src/mesa/main/polygon.c b/src/mesa/main/polygon.c
index 60af88f985..46673ee7ca 100644
--- a/src/mesa/main/polygon.c
+++ b/src/mesa/main/polygon.c
@@ -143,14 +143,13 @@ _mesa_PolygonMode( GLenum face, GLenum mode )
          return;
       }
       if (ctx->Polygon.FrontMode == mode)
-	 return;
+         return;
       FLUSH_VERTICES(ctx, _NEW_POLYGON);
       ctx->Polygon.FrontMode = mode;
       break;
    case GL_FRONT_AND_BACK:
-      if (ctx->Polygon.FrontMode == mode &&
-	  ctx->Polygon.BackMode == mode)
-	 return;
+      if (ctx->Polygon.FrontMode == mode && ctx->Polygon.BackMode == mode)
+         return;
       FLUSH_VERTICES(ctx, _NEW_POLYGON);
       ctx->Polygon.FrontMode = mode;
       ctx->Polygon.BackMode = mode;
@@ -161,7 +160,7 @@ _mesa_PolygonMode( GLenum face, GLenum mode )
          return;
       }
       if (ctx->Polygon.BackMode == mode)
-	 return;
+         return;
       FLUSH_VERTICES(ctx, _NEW_POLYGON);
       ctx->Polygon.BackMode = mode;
       break;




More information about the mesa-commit mailing list