<div dir="ltr">Section 5.1.3 of the spec specifies that the underlying query object is freed when<br>it is not longer the active query object for a target. glDeleteQueries doesn't specify<br>that the query is no longer the active query for the target (if it was). So when doing<br>

glEndQuery after having deleted the query name there still is an active query for the<br>target with a "non 0 name" even if the name has been deleted.<br>---<br> .../arb_occlusion_query/gen_delete_while_active.c  |    4 ++--<br>

 1 files changed, 2 insertions(+), 2 deletions(-)<br><br>diff --git a/tests/spec/arb_occlusion_query/gen_delete_while_active.c b/tests/spec/arb_occlusion_query/gen_delete_while_active.c<br>index dd3c7c8..53fbbff 100644<br>

--- a/tests/spec/arb_occlusion_query/gen_delete_while_active.c<br>+++ b/tests/spec/arb_occlusion_query/gen_delete_while_active.c<br>@@ -87,13 +87,13 @@ piglit_display(void)<br>                        return PIGLIT_FAIL;<br>

        }<br><br>-       printf ("Testing that glEndQuery on deleted query (expecting error).\n");<br>+       printf ("Testing glEndQuery on deleted query.\n");<br>        {<br>                /* And ensure that we get an error if we try to end a deleted<br>

                 * query. */<br>                glEndQuery(GL_SAMPLES_PASSED);<br><br>-               if (!piglit_check_gl_error(GL_INVALID_OPERATION))<br>+               if (!piglit_check_gl_error(GL_NO_ERROR))<br>                        return PIGLIT_FAIL;<br>

        }<br><br>--<br>1.7.9</div>