summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2001-03-07 23:22:08 +0000
committerBrian Paul <[email protected]>2001-03-07 23:22:08 +0000
commiteac57f009ea347cfce0d70452c1bdeb0e6c9eeae (patch)
tree32afa3a496d66e6b5930f8be4cb00ec83971b81f /src/mesa/drivers
parent9cb9401e8787bf524b8e647d63a3de9d8d1a1dd1 (diff)
added an assertion in the init code, just to be safe
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r--src/mesa/drivers/common/t_dd_vbtmp.h3
1 files changed, 3 insertions, 0 deletions
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);
}