Simplify viaChooseVertexState slightly.
authorKeith Whitwell <keith@tungstengraphics.com>
Thu, 13 Jan 2005 14:57:34 +0000 (14:57 +0000)
committerKeith Whitwell <keith@tungstengraphics.com>
Thu, 13 Jan 2005 14:57:34 +0000 (14:57 +0000)
src/mesa/drivers/dri/unichrome/via_tris.c

index 2f405452d74b60daab6fd0d1425b77cf47cd1498..dd00371e79b350cb4afcc240fbe57a058ae00f7c 100644 (file)
@@ -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) {