mesa: use FLUSH_CURRENT and not FLUSH_VERTICES in _mesa_validate_*
authorMarek Olšák <maraeo@gmail.com>
Mon, 2 Jul 2012 15:10:09 +0000 (17:10 +0200)
committerMarek Olšák <maraeo@gmail.com>
Mon, 2 Jul 2012 15:48:36 +0000 (17:48 +0200)
commit9f0f2f9512c3c9dcf875efa490b587f010b260c1
tree14796fdfbe746961f9a68815b86659e07f7dc343
parent876889b35502a110ca18c7325abe6e0727dc89f5
mesa: use FLUSH_CURRENT and not FLUSH_VERTICES in _mesa_validate_*

ASSERT_OUTSIDE_BEGIN_END_AND_FLUSH_WITH_RETVAL calls FLUSH_VERTICES, which
is not what we want.

This fixes a breakage in classic drivers, introduced in:

  62b971673950148eb949ba23d7fdc47debea16f0
  vbo: first ASSERT_OUTSIDE_BEGIN_END then FLUSH, not the other way around

It should fix:
  https://bugs.freedesktop.org/show_bug.cgi?id=51629
  https://bugs.freedesktop.org/show_bug.cgi?id=51642

Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/main/api_validate.c