diff options
author | Erik Faye-Lund <[email protected]> | 2019-10-03 16:51:19 -0400 |
---|---|---|
committer | Erik Faye-Lund <[email protected]> | 2019-10-17 10:41:36 +0200 |
commit | 28543f1640d459404413c244740291fe68a75a5c (patch) | |
tree | b2e7e01dc255da195414a3d61d089436151e9ec0 /src/mesa/state_tracker/st_atom_rasterizer.c | |
parent | 011d692a52b60bbbb73395e403bcb6c7cbe61a06 (diff) |
mesa/gallium: automatically lower two-sided lighting
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/mesa/state_tracker/st_atom_rasterizer.c')
-rw-r--r-- | src/mesa/state_tracker/st_atom_rasterizer.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/state_tracker/st_atom_rasterizer.c b/src/mesa/state_tracker/st_atom_rasterizer.c index 1cbefce29b5..bcbb3cd6b79 100644 --- a/src/mesa/state_tracker/st_atom_rasterizer.c +++ b/src/mesa/state_tracker/st_atom_rasterizer.c @@ -101,7 +101,8 @@ st_update_rasterizer(struct st_context *st) GL_FIRST_VERTEX_CONVENTION_EXT; /* _NEW_LIGHT | _NEW_PROGRAM */ - raster->light_twoside = _mesa_vertex_program_two_side_enabled(ctx); + if (!st->lower_two_sided_color) + raster->light_twoside = _mesa_vertex_program_two_side_enabled(ctx); /*_NEW_LIGHT | _NEW_BUFFERS */ raster->clamp_vertex_color = !st->clamp_vert_color_in_shader && |