From 27df1ec1cde0b83871cfe1f2d594ac6fd1c85897 Mon Sep 17 00:00:00 2001 From: Daniel Borca Date: Mon, 26 Jul 2004 15:10:34 +0000 Subject: [PATCH] disable W1 when single-texturing --- src/mesa/drivers/glide/fxvbtmp.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/mesa/drivers/glide/fxvbtmp.h b/src/mesa/drivers/glide/fxvbtmp.h index 45166644d21..255ddc9296d 100644 --- a/src/mesa/drivers/glide/fxvbtmp.h +++ b/src/mesa/drivers/glide/fxvbtmp.h @@ -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 -- 2.30.2