added an assertion in the init code, just to be safe
authorBrian Paul <brian.paul@tungstengraphics.com>
Wed, 7 Mar 2001 23:22:08 +0000 (23:22 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Wed, 7 Mar 2001 23:22:08 +0000 (23:22 +0000)
src/mesa/drivers/common/t_dd_vbtmp.h

index a13c6dc680d071880e11d75f0a562abf063a6f24..2e9a7ec9bcc1972ce90e1318c247317773fe357a 100644 (file)
@@ -805,6 +805,9 @@ static void TAG(init)( void )
       setup_tab[IND].vertex_size = 8;
       setup_tab[IND].vertex_stride_shift = 5; 
    }
+
+   assert(setup_tab[IND].vertex_size * 4 <=
+          1 << setup_tab[IND].vertex_stride_shift);
 }