diff options
author | Marek Olšák <[email protected]> | 2017-06-09 21:42:12 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2017-06-22 01:51:02 +0200 |
commit | e7a091936fb6fd578c6ced9baa38b306b638a11b (patch) | |
tree | 538a1b3fa377fbb299169879a064f5534a79c5d1 /src/mesa/swrast_setup | |
parent | c19b08b079da566d5c377c1ff4fe0ae6ac980003 (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/swrast_setup')
-rw-r--r-- | src/mesa/swrast_setup/ss_triangle.c | 1 | ||||
-rw-r--r-- | src/mesa/swrast_setup/ss_tritmp.h | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/swrast_setup/ss_triangle.c b/src/mesa/swrast_setup/ss_triangle.c index 8f034d8aaf0..d3a0e23109e 100644 --- a/src/mesa/swrast_setup/ss_triangle.c +++ b/src/mesa/swrast_setup/ss_triangle.c @@ -30,6 +30,7 @@ #include "main/macros.h" #include "main/mtypes.h" #include "main/stencil.h" +#include "main/state.h" #include "tnl/t_context.h" diff --git a/src/mesa/swrast_setup/ss_tritmp.h b/src/mesa/swrast_setup/ss_tritmp.h index adb77bd3247..c88747274bd 100644 --- a/src/mesa/swrast_setup/ss_tritmp.h +++ b/src/mesa/swrast_setup/ss_tritmp.h @@ -58,7 +58,7 @@ static void TAG(triangle)(struct gl_context *ctx, GLuint e0, GLuint e1, GLuint e if (IND & (SS_TWOSIDE_BIT | SS_UNFILLED_BIT)) { - facing = (cc < 0.0F) ^ ctx->Polygon._FrontBit; + facing = (cc < 0.0F) ^ _mesa_polygon_get_front_bit(ctx); if (IND & SS_UNFILLED_BIT) mode = facing ? ctx->Polygon.BackMode : ctx->Polygon.FrontMode; |