diff options
author | Brian Paul <[email protected]> | 2012-03-11 18:31:32 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2012-03-12 11:40:43 -0600 |
commit | 741bfef26c1f0d4f7c3d3a32479752cb6ee55ab6 (patch) | |
tree | ecadd96fda0d46567127284afd08fe03702528ce /src/mesa/main/state.c | |
parent | d710bbcd7458f6d48cf86586865f91e47c30feb2 (diff) |
mesa: remove unused DD_TRI_CULL_FRONT_BACK
Reviewed-by: José Fonseca <[email protected]>
Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/mesa/main/state.c')
-rw-r--r-- | src/mesa/main/state.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/mesa/main/state.c b/src/mesa/main/state.c index f4156769f6f..b01926622ad 100644 --- a/src/mesa/main/state.c +++ b/src/mesa/main/state.c @@ -370,16 +370,13 @@ update_twoside(struct gl_context *ctx) /* - * Check polygon state and set DD_TRI_CULL_FRONT_BACK and/or DD_TRI_OFFSET + * Check polygon state and set DD_TRI_OFFSET * in ctx->_TriangleCaps if needed. */ static void update_polygon(struct gl_context *ctx) { - ctx->_TriangleCaps &= ~(DD_TRI_CULL_FRONT_BACK | DD_TRI_OFFSET); - - if (ctx->Polygon.CullFlag && ctx->Polygon.CullFaceMode == GL_FRONT_AND_BACK) - ctx->_TriangleCaps |= DD_TRI_CULL_FRONT_BACK; + ctx->_TriangleCaps &= ~DD_TRI_OFFSET; if ( ctx->Polygon.OffsetPoint || ctx->Polygon.OffsetLine @@ -431,9 +428,6 @@ update_tricaps(struct gl_context *ctx, GLbitfield new_state) if (ctx->Polygon.FrontMode != GL_FILL || ctx->Polygon.BackMode != GL_FILL) ctx->_TriangleCaps |= DD_TRI_UNFILLED; - if (ctx->Polygon.CullFlag - && ctx->Polygon.CullFaceMode == GL_FRONT_AND_BACK) - ctx->_TriangleCaps |= DD_TRI_CULL_FRONT_BACK; if (ctx->Polygon.OffsetPoint || ctx->Polygon.OffsetLine || ctx->Polygon.OffsetFill) |