fix bug on GL_VERTEX_PROGRAM_TWO_SIDE path
authorBrian <brian.paul@tungstengraphics.com>
Tue, 18 Dec 2007 23:00:58 +0000 (16:00 -0700)
committerBrian <brian.paul@tungstengraphics.com>
Tue, 18 Dec 2007 23:01:53 +0000 (16:01 -0700)
src/mesa/state_tracker/st_atom_rasterizer.c

index 5c6b89d..35fd506 100644 (file)
@@ -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) {