From: Brian Paul Date: Wed, 7 Mar 2001 23:22:08 +0000 (+0000) Subject: added an assertion in the init code, just to be safe X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=eac57f009ea347cfce0d70452c1bdeb0e6c9eeae;p=mesa.git added an assertion in the init code, just to be safe --- 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); }