mesa: Fix gross indenting in _mesa_PolygonMode()

Signed-off-by: Lyude <lyude@redhat.com>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
This commit is contained in:
Lyude 2017-03-22 20:51:08 -04:00 committed by Eric Anholt
parent a1ce8a3fe2
commit 043ee96059
1 changed files with 4 additions and 5 deletions

View File

@ -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;