From: Brian Date: Tue, 18 Dec 2007 23:00:58 +0000 (-0700) Subject: fix bug on GL_VERTEX_PROGRAM_TWO_SIDE path X-Git-Tag: android-x86-1.6~16^2~1465^2~390^2~3107 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=52da6b559a47eca2c1a8ec1b713e188f38e1d16a;p=android-x86%2Fexternal-mesa.git fix bug on GL_VERTEX_PROGRAM_TWO_SIDE path --- diff --git a/src/mesa/state_tracker/st_atom_rasterizer.c b/src/mesa/state_tracker/st_atom_rasterizer.c index 5c6b89d78c4..35fd5064581 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) {