mesa: don't install glDraw* functions into the BeginEnd dispatch table
authorBrian Paul <brianp@vmware.com>
Thu, 2 May 2013 01:15:32 +0000 (19:15 -0600)
committerBrian Paul <brianp@vmware.com>
Thu, 2 May 2013 15:03:15 +0000 (09:03 -0600)
commit3e7c16997af83c7db9f3a1e565ae01e7684284ca
tree06a46a3edb4b40b2d730accae963fdc079a92f87
parentd6f3ef92d7cdc48c3fee50aac09e33148aec035f
mesa: don't install glDraw* functions into the BeginEnd dispatch table

Functions like glDrawArrays, glDrawElements, etc. are illegal between
glBegin/glEnd and should generate GL_INVALID_OPERATION.

Fixes several piglit gl-1.0-beginend-coverage failures.

Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
src/mesa/main/vtxfmt.c