OSDN Git Service

This is a major re-work of the __indirect_glInterleavedArrays routine. The
authorIan Romanick <idr@us.ibm.com>
Wed, 30 Nov 2005 00:06:48 +0000 (00:06 +0000)
committerIan Romanick <idr@us.ibm.com>
Wed, 30 Nov 2005 00:06:48 +0000 (00:06 +0000)
commit5910dfacf100f3748a732cc262a7913e2922016e
treea11d3fbc31f5f11088b8b38840bcc7822883f3e5
parent96f216565e09032021bafa7a805aa7707777fda1
This is a major re-work of the __indirect_glInterleavedArrays routine. The
big, ugly, error prone switch-statement is replaced with a compact table.
I also added numerous comments, including a comment explaining how the
format parameter is validated.

Explicitly pass GL_FLOAT as the type in the cases where that is the only
possible value (e.g., everywhere except the call to glColorPointer).

Validate that stride is >= 0.

Tested with all modes (including the two error modes) of
progs/tests/interleave.c.

Bug: #5001, #5058
Reviewed by: Brian Paul
src/glx/x11/vertarr.c