diff options
author | Daniel Borca <dborca@users.sourceforge.net> | 2004-07-26 15:10:34 +0000 |
---|---|---|
committer | Daniel Borca <dborca@users.sourceforge.net> | 2004-07-26 15:10:34 +0000 |
commit | 27df1ec1cde0b83871cfe1f2d594ac6fd1c85897 (patch) | |
tree | e5173f4557432e6046e7f88bba0c3113c5303ebb /src/mesa/drivers/glide | |
parent | 146852881fab329e0116044b55fc53bce0b0272e (diff) |
disable W1 when single-texturing
Diffstat (limited to 'src/mesa/drivers/glide')
-rw-r--r-- | src/mesa/drivers/glide/fxvbtmp.h | 12 |
1 files 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 |