summaryrefslogtreecommitdiff
path: root/xc/extras/Mesa/src/vbrender.c
diff options
context:
space:
mode:
authorkeithw <keithw>2000-08-17 23:03:22 +0000
committerkeithw <keithw>2000-08-17 23:03:22 +0000
commit4f962efba7fd99bdf8d788b64a4f2e70fcfab92b (patch)
treea17e1cb8ae3ca32b167477dd667ee2fa502e3aef /xc/extras/Mesa/src/vbrender.c
parenta8ed2c4b2e33dab1a3e91c6d7136b5f9985d374c (diff)
Fix for (another cause of) the two-sided lit, unfilled triangle bug.
This fix is already in current versions of Mesa.
Diffstat (limited to 'xc/extras/Mesa/src/vbrender.c')
-rw-r--r--xc/extras/Mesa/src/vbrender.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xc/extras/Mesa/src/vbrender.c b/xc/extras/Mesa/src/vbrender.c
index 9ee4fbb8c..dd1ae5159 100644
--- a/xc/extras/Mesa/src/vbrender.c
+++ b/xc/extras/Mesa/src/vbrender.c
@@ -292,7 +292,7 @@ static void render_triangle( GLcontext *ctx,
return;
facing = (c<0.0F) ^ (ctx->Polygon.FrontFace==GL_CW);
- tricaps = ctx->IndirectTriangles;
+ tricaps = ctx->TriangleCaps;
if (tricaps & DD_TRI_OFFSET) {
/* finish computing plane equation of polygon, compute offset */
@@ -342,7 +342,7 @@ static void render_quad( GLcontext *ctx, GLuint v0, GLuint v1,
GLfloat fy = win[v3][1] - win[v1][1];
GLfloat c = ex*fy-ey*fx;
GLuint facing;
- GLuint tricaps = ctx->IndirectTriangles;
+ GLuint tricaps = ctx->TriangleCaps;
if (c * ctx->backface_sign > 0)
return;