diff options
author | Brian <[email protected]> | 2007-09-27 10:24:17 -0600 |
---|---|---|
committer | Brian <[email protected]> | 2007-09-27 10:39:01 -0600 |
commit | ed6d5ff6f8fdd34aaaa126119dbd8e1e321859d8 (patch) | |
tree | fc96d0a93505aa755e0b0889b6f0d3f7273ffb5d /src/mesa/main/polygon.c | |
parent | 4f9d29cd4e876cd202a7d3e81f6d91fc7f9625a2 (diff) |
Restore old _TriangleCaps code to fix Blender problem (bug 12164)
Diffstat (limited to 'src/mesa/main/polygon.c')
-rw-r--r-- | src/mesa/main/polygon.c | 5 |
1 files changed, 5 insertions, 0 deletions
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); } |