mesa: add missing error check in _mesa_EndList()
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)
commit94c7caf406debc0d35153267f491e30a203f9a72
treef6eceb3e8ebb4d0ef96cf1968f7ae050be0c97ef
parentc1a5c5c13d838309cf88664edf159e6086408f28
mesa: add missing error check in _mesa_EndList()

If we're in GL_COMPILE_AND_EXECUTE mode and inside glBegin, calling
glEndList() should generate an error.

Fixes a failure in piglit's gl-1.0-beginend-coverage test.

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