mesa: Return 0 for GL_CURRENT_QUERY with a mismatched query target.
authorEric Anholt <eric@anholt.net>
Wed, 17 Oct 2012 00:36:42 +0000 (17:36 -0700)
committerEric Anholt <eric@anholt.net>
Tue, 23 Oct 2012 00:36:53 +0000 (17:36 -0700)
commitab7188e1992e655031550d611178c55abe33d5c5
tree864ea8dd582596d22e33bf8105d67e39cfdee665
parent8f1131fcc00333efd824642576addacbea57f4ba
mesa: Return 0 for GL_CURRENT_QUERY with a mismatched query target.

With the previous two commits, this fixes piglit
GL_ARB_occlusion_query2/api.

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