[Mesa-stable] [PATCH] mesa: Set query->EverBound in glQueryCounter().
Ian Romanick
idr at freedesktop.org
Fri Aug 23 12:43:19 PDT 2013
On 08/23/2013 10:40 AM, Kenneth Graunke wrote:
> 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.
>
> Fixes Piglit's spec/ARB_timer_query/query-lifetime.
>
> Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
> Cc: mesa-stable at lists.freedesktop.org
Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>
> ---
> src/mesa/main/queryobj.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/src/mesa/main/queryobj.c b/src/mesa/main/queryobj.c
> index b74898c..60356b8 100644
> --- a/src/mesa/main/queryobj.c
> +++ b/src/mesa/main/queryobj.c
> @@ -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);
>
More information about the mesa-stable
mailing list