summaryrefslogtreecommitdiff
path: root/src/mesa/state_tracker/st_atom_rasterizer.c
diff options
context:
space:
mode:
authorBrian <brian.paul@tungstengraphics.com>2007-12-18 16:00:58 -0700
committerBrian <brian.paul@tungstengraphics.com>2007-12-18 16:01:53 -0700
commit52da6b559a47eca2c1a8ec1b713e188f38e1d16a (patch)
tree3d6bc7b5bfc8efefadfd1109320269ff3a0f5c14 /src/mesa/state_tracker/st_atom_rasterizer.c
parent8c20747834c2ea7006f127e974560534ab279da2 (diff)
fix bug on GL_VERTEX_PROGRAM_TWO_SIDE path
Diffstat (limited to 'src/mesa/state_tracker/st_atom_rasterizer.c')
-rw-r--r--src/mesa/state_tracker/st_atom_rasterizer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/state_tracker/st_atom_rasterizer.c b/src/mesa/state_tracker/st_atom_rasterizer.c
index 5c6b89d78c..35fd506458 100644
--- a/src/mesa/state_tracker/st_atom_rasterizer.c
+++ b/src/mesa/state_tracker/st_atom_rasterizer.c
@@ -109,7 +109,7 @@ static void update_raster_state( struct st_context *st )
* GL_LIGHT_MODEL_TWO_SIDE is set) or from vertex programs (when
* GL_VERTEX_PROGRAM_TWO_SIDE is set). Note the logic here.
*/
- if (ctx->VertexProgram._Enabled) {
+ if (ctx->VertexProgram._Current) {
raster.light_twoside = ctx->VertexProgram.TwoSideEnabled;
}
else if (ctx->Light.Enabled && ctx->Light.Model.TwoSide) {