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 <[email protected]>
Cc: [email protected]
---
  src/mesa/main/queryobj.c | 1 +
  1 file changed, 1 insertion(+)

Yep, the ARB_timer_query spec says so:

    """
    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 [...]
    """

Reviewed-by: Chad Versace <[email protected]>
_______________________________________________
mesa-dev mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to