From eac57f009ea347cfce0d70452c1bdeb0e6c9eeae Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Wed, 7 Mar 2001 23:22:08 +0000 Subject: added an assertion in the init code, just to be safe --- src/mesa/drivers/common/t_dd_vbtmp.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/mesa/drivers/common/t_dd_vbtmp.h b/src/mesa/drivers/common/t_dd_vbtmp.h index a13c6dc680d..2e9a7ec9bcc 100644 --- a/src/mesa/drivers/common/t_dd_vbtmp.h +++ b/src/mesa/drivers/common/t_dd_vbtmp.h @@ -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); } -- cgit v1.2.3