From: Keith Whitwell Date: Thu, 13 Jan 2005 14:57:34 +0000 (+0000) Subject: Simplify viaChooseVertexState slightly. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a0371b0b3cdf3901985215d98e265b1a2131455a;p=mesa.git Simplify viaChooseVertexState slightly. --- diff --git a/src/mesa/drivers/dri/unichrome/via_tris.c b/src/mesa/drivers/dri/unichrome/via_tris.c index 2f405452d74..dd00371e79b 100644 --- a/src/mesa/drivers/dri/unichrome/via_tris.c +++ b/src/mesa/drivers/dri/unichrome/via_tris.c @@ -744,11 +744,7 @@ static void viaChooseVertexState( GLcontext *ctx ) } if (index & _TNL_BIT_TEX(1)) { - if (!(index & _TNL_BIT_TEX(0))) { - EMIT_ATTR( _TNL_ATTRIB_TEX1, EMIT_2F, VIA_EMIT_TEX1, (HC_HVPMSK_S | HC_HVPMSK_T) ); - } else { - EMIT_ATTR( _TNL_ATTRIB_TEX1, EMIT_2F, VIA_EMIT_TEX1, 0 ); - } + EMIT_ATTR( _TNL_ATTRIB_TEX1, EMIT_2F, VIA_EMIT_TEX1, (HC_HVPMSK_S | HC_HVPMSK_T) ); } if (setupIndex != vmesa->setupIndex) {