disable W1 when single-texturing
authorDaniel Borca <dborca@users.sourceforge.net>
Mon, 26 Jul 2004 15:10:34 +0000 (15:10 +0000)
committerDaniel Borca <dborca@users.sourceforge.net>
Mon, 26 Jul 2004 15:10:34 +0000 (15:10 +0000)
src/mesa/drivers/glide/fxvbtmp.h

index 45166644d21298455ea0da6535075b87b29e954c..255ddc9296df3f806b7e9b32727551c1cad4906a 100644 (file)
@@ -319,16 +319,16 @@ static void TAG(init)( void )
    setup_tab[IND].check_tex_sizes = TAG(check_tex_sizes);
    setup_tab[IND].interp = TAG(interp);
 
+   setup_tab[IND].vertex_format = 0;
    if (IND & SETUP_PTEX) {
-      setup_tab[IND].vertex_format = (GR_STWHINT_W_DIFF_TMU0 |
-                                     GR_STWHINT_W_DIFF_TMU1);
-   }
-   else {
-      setup_tab[IND].vertex_format = 0;
+      setup_tab[IND].vertex_format |= GR_STWHINT_W_DIFF_TMU0;
    }
 
 #if (IND & SETUP_TMU1)
-     setup_tab[IND].vertex_format |= GR_STWHINT_ST_DIFF_TMU1;
+   setup_tab[IND].vertex_format |= GR_STWHINT_ST_DIFF_TMU1;
+   if (IND & SETUP_PTEX) {
+      setup_tab[IND].vertex_format |= GR_STWHINT_W_DIFF_TMU1;
+   }
 #endif
 
 #endif