summaryrefslogtreecommitdiffstats
path: root/src/mesa/main
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2009-05-08 14:34:15 -0600
committerBrian Paul <[email protected]>2009-05-08 14:35:48 -0600
commit17a354a119370df9196a010a31fc71cd8712ec46 (patch)
treeb8c358248e24fb5e2384083da763f31f10492701 /src/mesa/main
parentcc58fbcf2c5c88f406818db60910f537e03610d6 (diff)
mesa: assertions to check for too many vertex outputs or fragment inputs
Diffstat (limited to 'src/mesa/main')
-rw-r--r--src/mesa/main/context.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c
index ddbc631e674..5e0f2d7b1bd 100644
--- a/src/mesa/main/context.c
+++ b/src/mesa/main/context.c
@@ -602,6 +602,10 @@ _mesa_init_constants(GLcontext *ctx)
ASSERT(MAX_NV_VERTEX_PROGRAM_TEMPS <= MAX_PROGRAM_TEMPS);
ASSERT(MAX_NV_VERTEX_PROGRAM_INPUTS <= VERT_ATTRIB_MAX);
ASSERT(MAX_NV_VERTEX_PROGRAM_OUTPUTS <= VERT_RESULT_MAX);
+
+ /* check that we don't exceed various 32-bit bitfields */
+ ASSERT(VERT_RESULT_MAX <= 32);
+ ASSERT(FRAG_ATTRIB_MAX <= 32);
}