fix Unichrome/Blender crash, bug 13142

This commit is contained in:
Benno Schulenberg 2007-11-08 07:34:20 -07:00 committed by Brian
parent 286ce27193
commit 1dfec88e72
1 changed files with 4 additions and 2 deletions

View File

@ -666,9 +666,11 @@ static void viaChooseRenderState(GLcontext *ctx)
}
if (flags & (ANY_FALLBACK_FLAGS|ANY_RASTER_FLAGS)) {
if (flags & DD_TRI_LIGHT_TWOSIDE) index |= VIA_TWOSIDE_BIT;
if (ctx->Light.Enabled && ctx->Light.Model.TwoSide)
index |= VIA_TWOSIDE_BIT;
if (flags & DD_TRI_OFFSET) index |= VIA_OFFSET_BIT;
if (flags & DD_TRI_UNFILLED) index |= VIA_UNFILLED_BIT;
if (ctx->Polygon.FrontMode != GL_FILL || ctx->Polygon.BackMode != GL_FILL)
index |= VIA_UNFILLED_BIT;
if (flags & ANY_FALLBACK_FLAGS) index |= VIA_FALLBACK_BIT;
/* Hook in fallbacks for specific primitives.