aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/tnl_dd/t_dd_tritmp.h
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/tnl_dd/t_dd_tritmp.h
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/tnl_dd/t_dd_tritmp.h')
-rw-r--r--src/mesa/tnl_dd/t_dd_tritmp.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/tnl_dd/t_dd_tritmp.h b/src/mesa/tnl_dd/t_dd_tritmp.h
index 2176f1f1667..2294a76a65c 100644
--- a/src/mesa/tnl_dd/t_dd_tritmp.h
+++ b/src/mesa/tnl_dd/t_dd_tritmp.h
@@ -137,7 +137,7 @@ static void TAG(triangle)( struct gl_context *ctx, GLuint e0, GLuint e1, GLuint
if (DO_TWOSIDE || DO_UNFILLED || DO_TWOSTENCIL)
{
- facing = AREA_IS_CCW( cc ) ^ ctx->Polygon._FrontBit;
+ facing = AREA_IS_CCW( cc ) ^ _mesa_polygon_get_front_bit(ctx);
if (DO_UNFILLED) {
if (facing) {
@@ -362,7 +362,7 @@ static void TAG(quadr)( struct gl_context *ctx,
if (DO_TWOSIDE || DO_UNFILLED || DO_TWOSTENCIL)
{
- facing = AREA_IS_CCW( cc ) ^ ctx->Polygon._FrontBit;
+ facing = AREA_IS_CCW( cc ) ^ _mesa_polygon_get_front_bit(ctx);
if (DO_UNFILLED) {
if (facing) {