mesa: fix vertex array enable checking in check_valid_to_render()
authorBrian Paul <brianp@vmware.com>
Wed, 18 May 2011 22:19:06 +0000 (16:19 -0600)
committerBrian Paul <brianp@vmware.com>
Fri, 20 May 2011 03:18:33 +0000 (21:18 -0600)
commit43bdabd47d98975b56a759954fb5f37d2942c101
treec8a6e35b769e6edf7c9afa6d7d2d905a8edba4b6
parentbe0a2f62f3a5bc6f05c3c7c6b674f2688aee031d
mesa: fix vertex array enable checking in check_valid_to_render()

In particular, this fixes the case where a vertex shader only uses
generic vertex attributes (non-0th).  Before, we were no-op'ing the
glDrawArrays/Elements().

This fixes the new piglit pos-array test.

NOTE: This is a candidate for the 7.10 branch.
src/mesa/main/api_validate.c