From c19b08b079da566d5c377c1ff4fe0ae6ac980003 Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Fri, 9 Jun 2017 21:27:18 +0200 Subject: mesa: replace ctx->VertexProgram._TwoSideEnabled with a helper function MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-by: Nicolai Hähnle Reviewed-by: Brian Paul Reviewed-by: Timothy Arceri --- src/mesa/state_tracker/st_atom_rasterizer.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/mesa/state_tracker') diff --git a/src/mesa/state_tracker/st_atom_rasterizer.c b/src/mesa/state_tracker/st_atom_rasterizer.c index 42696b10a36..6e17562d5aa 100644 --- a/src/mesa/state_tracker/st_atom_rasterizer.c +++ b/src/mesa/state_tracker/st_atom_rasterizer.c @@ -32,6 +32,7 @@ #include "main/macros.h" #include "main/framebuffer.h" +#include "main/state.h" #include "st_context.h" #include "st_atom.h" #include "st_debug.h" @@ -99,7 +100,7 @@ void st_update_rasterizer( struct st_context *st ) GL_FIRST_VERTEX_CONVENTION_EXT; /* _NEW_LIGHT | _NEW_PROGRAM */ - raster->light_twoside = ctx->VertexProgram._TwoSideEnabled; + raster->light_twoside = _mesa_vertex_program_two_side_enabled(ctx); /*_NEW_LIGHT | _NEW_BUFFERS */ raster->clamp_vertex_color = !st->clamp_vert_color_in_shader && -- cgit v1.2.3