mesa: replace _mesa_update_stencil() with helper functions
[mesa.git] / src / mesa / swrast_setup / ss_triangle.c
index b92c20be2b751c8f2ba3af682e13d51181c83fec..8f034d8aaf0c12402211af689ddd7d691cd2f825 100644 (file)
@@ -29,6 +29,7 @@
 #include "main/glheader.h"
 #include "main/macros.h"
 #include "main/mtypes.h"
+#include "main/stencil.h"
 
 #include "tnl/t_context.h"
 
@@ -255,7 +256,7 @@ void _swsetup_choose_trifuncs( struct gl_context *ctx )
     */
    if (ctx->Polygon.FrontMode != GL_FILL ||
        ctx->Polygon.BackMode != GL_FILL ||
-       (ctx->Stencil.Enabled && ctx->Stencil._TestTwoSide))
+       (ctx->Stencil.Enabled && _mesa_stencil_is_two_sided(ctx)))
       ind |= SS_UNFILLED_BIT;
 
    tnl->Driver.Render.Triangle = tri_tab[ind];