diff options
-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 45166644d2..255ddc9296 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 |