mesa: Set query->EverBound in glQueryCounter().
authorKenneth Graunke <kenneth@whitecape.org>
Fri, 23 Aug 2013 17:35:34 +0000 (10:35 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 26 Aug 2013 03:29:59 +0000 (20:29 -0700)
commit7950315583244f03a58ac00d7b0516860475914c
tree96785007314174fd1d3ffc8ecf8b48cad1908693
parentb5ddaf9975f96c46ea3dfb02c4130de5196b238c
mesa: Set query->EverBound in glQueryCounter().

glIsQuery is supposed to return false for names returned by glGenQueries
until their first use.  BeginQuery is a use, but QueryCounter is also a
use.

From the ARB_timer_query spec:
"A timer query object is created with the command

      void QueryCounter(uint id, enum target);

 [...] If <id> is an unused query object name, the
 name is marked as used [...]"

Fixes Piglit's spec/ARB_timer_query/query-lifetime.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
Cc: mesa-stable@lists.freedesktop.org
src/mesa/main/queryobj.c