mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 09:38:07 +02:00
mesa: assertions to check for too many vertex outputs or fragment inputs
This commit is contained in:
parent
cc58fbcf2c
commit
17a354a119
1 changed files with 4 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue