summaryrefslogtreecommitdiffstats
path: root/src/mesa/tnl
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2012-03-11 18:31:32 -0600
committerBrian Paul <brianp@vmware.com>2012-03-12 11:40:43 -0600
commitd2b849a227be0dba1730de65e4cefaf450cd6166 (patch)
tree2c0cb3bd8de3ff18f3be617ada6579bfab933e80 /src/mesa/tnl
parent938aaec981761a51043f4f68289c9a3f0e12e19c (diff)
downloadexternal_mesa3d-d2b849a227be0dba1730de65e4cefaf450cd6166.zip
external_mesa3d-d2b849a227be0dba1730de65e4cefaf450cd6166.tar.gz
external_mesa3d-d2b849a227be0dba1730de65e4cefaf450cd6166.tar.bz2
tnl: stop using _DD_NEW_x flags
Reviewed-by: José Fonseca <jfonseca@vmware.com> Reviewed-by: Eric Anholt <eric@anholt.net>
Diffstat (limited to 'src/mesa/tnl')
-rw-r--r--src/mesa/tnl/t_vertex.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/tnl/t_vertex.c b/src/mesa/tnl/t_vertex.c
index 6582949..580f95d 100644
--- a/src/mesa/tnl/t_vertex.c
+++ b/src/mesa/tnl/t_vertex.c
@@ -269,7 +269,8 @@ void *_tnl_get_vertex( struct gl_context *ctx, GLuint nr )
void _tnl_invalidate_vertex_state( struct gl_context *ctx, GLuint new_state )
{
- if (new_state & (_DD_NEW_TRI_LIGHT_TWOSIDE|_DD_NEW_TRI_UNFILLED) ) {
+ /* if two-sided lighting changes or filled/unfilled polygon state changes */
+ if (new_state & (_NEW_LIGHT | _NEW_POLYGON) ) {
struct tnl_clipspace *vtx = GET_VERTEX_STATE(ctx);
vtx->new_inputs = ~0;
vtx->interp = choose_interp_func;