summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/state.c
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2017-06-09 21:42:12 +0200
committerMarek Olšák <[email protected]>2017-06-22 01:51:02 +0200
commite7a091936fb6fd578c6ced9baa38b306b638a11b (patch)
tree538a1b3fa377fbb299169879a064f5534a79c5d1 /src/mesa/main/state.c
parentc19b08b079da566d5c377c1ff4fe0ae6ac980003 (diff)
mesa: replace ctx->Polygon._FrontBit with a helper function
Reviewed-by: Nicolai Hähnle <[email protected]> Reviewed-by: Brian Paul <[email protected]> Reviewed-by: Timothy Arceri <[email protected]>
Diffstat (limited to 'src/mesa/main/state.c')
-rw-r--r--src/mesa/main/state.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/mesa/main/state.c b/src/mesa/main/state.c
index 0772e6b82a1..79727983f1f 100644
--- a/src/mesa/main/state.c
+++ b/src/mesa/main/state.c
@@ -274,21 +274,6 @@ update_program_constants(struct gl_context *ctx)
}
-
-
-/**
- * Update the ctx->Polygon._FrontBit flag.
- */
-static void
-update_frontbit(struct gl_context *ctx)
-{
- if (ctx->Transform.ClipOrigin == GL_LOWER_LEFT)
- ctx->Polygon._FrontBit = (ctx->Polygon.FrontFace == GL_CW);
- else
- ctx->Polygon._FrontBit = (ctx->Polygon.FrontFace == GL_CCW);
-}
-
-
/**
* Compute derived GL state.
* If __struct gl_contextRec::NewState is non-zero then this function \b must
@@ -348,9 +333,6 @@ _mesa_update_state_locked( struct gl_context *ctx )
if (new_state & (_NEW_TEXTURE_OBJECT | _NEW_TEXTURE_STATE | _NEW_PROGRAM))
_mesa_update_texture_state(ctx);
- if (new_state & _NEW_POLYGON)
- update_frontbit( ctx );
-
if (new_state & _NEW_BUFFERS)
_mesa_update_framebuffer(ctx, ctx->ReadBuffer, ctx->DrawBuffer);