mesa: Fix regression in dlist save primitive tracking.
authorEric Anholt <eric@anholt.net>
Wed, 16 Jan 2013 18:40:06 +0000 (10:40 -0800)
committerEric Anholt <eric@anholt.net>
Tue, 22 Jan 2013 05:26:46 +0000 (21:26 -0800)
commit4d8f72f2bcf04f2af95e4eb43c9e3c65262b3974
tree01d23e3eaacd536a1fc287987763a57b6a8a6c5b
parent3a91e7955ace2885cfb23089852018a8037ca134
mesa: Fix regression in dlist save primitive tracking.

My change 7ca4f07b5b77ccac0a9b60dc5ac9082906b5947e caused errors to not
be thrown when they should, because the new if statement for ExecuteFlag
made the CurrentSavePrimitive not get set.  And on further review, we
shouldn't be validating our primitive in GL_COMPILE mode, since the
command shouldn't be executed yet.

Partially fixes piglit gl-1.0-beginend-coverage.

Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/main/dlist.c