fix bug on GL_VERTEX_PROGRAM_TWO_SIDE path

This commit is contained in:
Brian
2007-12-18 16:00:58 -07:00
parent 8c20747834
commit 52da6b559a

View 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) {