diff options
author | Brian Paul <[email protected]> | 2006-07-20 04:17:11 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2006-07-20 04:17:11 +0000 |
commit | 2f12458fb3817a402ca15a5fd9bcef1728a3403a (patch) | |
tree | 35719c5b0541c3dbdf0e274cd20b5422b79328f1 /src/mesa/tnl | |
parent | a1a6ac4af4ba5b1da7c768d892b84cb1204c4c7f (diff) |
use ctx->Light.ShadeModel instead of ctx->_TriangleCaps
Diffstat (limited to 'src/mesa/tnl')
-rw-r--r-- | src/mesa/tnl/t_vb_cliptmp.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/tnl/t_vb_cliptmp.h b/src/mesa/tnl/t_vb_cliptmp.h index 8d253c713e4..f3776e7eeb6 100644 --- a/src/mesa/tnl/t_vb_cliptmp.h +++ b/src/mesa/tnl/t_vb_cliptmp.h @@ -160,7 +160,7 @@ TAG(clip_line)( GLcontext *ctx, GLuint v0, GLuint v1, GLubyte mask ) INTERP_4F( t1, coord[newvert], coord[v1], coord[v0] ); interp( ctx, t1, newvert, v1, v0, GL_FALSE ); - if (ctx->_TriangleCaps & DD_FLATSHADE) + if (ctx->Light.ShadeModel == GL_FLAT) tnl->Driver.Render.CopyPV( ctx, newvert, v1 ); v1 = newvert; @@ -213,7 +213,7 @@ TAG(clip_tri)( GLcontext *ctx, GLuint v0, GLuint v1, GLuint v2, GLubyte mask ) } } - if (ctx->_TriangleCaps & DD_FLATSHADE) { + if (ctx->Light.ShadeModel == GL_FLAT) { if (pv != inlist[0]) { ASSERT( inlist[0] >= VB->Count ); tnl->Driver.Render.CopyPV( ctx, inlist[0], pv ); @@ -264,7 +264,7 @@ TAG(clip_quad)( GLcontext *ctx, GLuint v0, GLuint v1, GLuint v2, GLuint v3, } } - if (ctx->_TriangleCaps & DD_FLATSHADE) { + if (ctx->Light.ShadeModel == GL_FLAT) { if (pv != inlist[0]) { ASSERT( inlist[0] >= VB->Count ); tnl->Driver.Render.CopyPV( ctx, inlist[0], pv ); |