mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-26 10:00:22 +01:00
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
(cherry picked from commit 7950315583)
This commit is contained in:
parent
3370dfdf3e
commit
f31a1d9f8d
1 changed files with 1 additions and 0 deletions
|
|
@ -485,6 +485,7 @@ _mesa_QueryCounter(GLuint id, GLenum target)
|
|||
q->Target = target;
|
||||
q->Result = 0;
|
||||
q->Ready = GL_FALSE;
|
||||
q->EverBound = GL_TRUE;
|
||||
|
||||
if (ctx->Driver.QueryCounter) {
|
||||
ctx->Driver.QueryCounter(ctx, q);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue