From ed6d5ff6f8fdd34aaaa126119dbd8e1e321859d8 Mon Sep 17 00:00:00 2001 From: Brian Date: Thu, 27 Sep 2007 10:24:17 -0600 Subject: Restore old _TriangleCaps code to fix Blender problem (bug 12164) --- src/mesa/main/polygon.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/mesa/main/polygon.c') diff --git a/src/mesa/main/polygon.c b/src/mesa/main/polygon.c index fd02e5a652d..564250b881c 100644 --- a/src/mesa/main/polygon.c +++ b/src/mesa/main/polygon.c @@ -167,6 +167,11 @@ _mesa_PolygonMode( GLenum face, GLenum mode ) return; } + if (ctx->Polygon.FrontMode == GL_FILL && ctx->Polygon.BackMode == GL_FILL) + ctx->_TriangleCaps &= ~DD_TRI_UNFILLED; + else + ctx->_TriangleCaps |= DD_TRI_UNFILLED; + if (ctx->Driver.PolygonMode) ctx->Driver.PolygonMode(ctx, face, mode); } -- cgit v1.2.3