Update comment to specify actual text being referenced from the specification.
authorCarl Worth <cworth@cworth.org>
Mon, 17 Dec 2012 21:38:39 +0000 (13:38 -0800)
committerCarl Worth <cworth@cworth.org>
Tue, 15 Jan 2013 21:10:58 +0000 (13:10 -0800)
The reference to "correct, see spec" was a bit too vague to be useful,
(particularly since the language being referenced here changes between OpenGL
3.1 and OpenGL 4.3).

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/main/queryobj.c

index aa7c800d45b3c5027569240870c98f692515763e..b482b1518de8fcc58d60125cfa7b108eae098ef7 100644 (file)
@@ -50,7 +50,12 @@ _mesa_new_query_object(struct gl_context *ctx, GLuint id)
       q->Id = id;
       q->Result = 0;
       q->Active = GL_FALSE;
-      q->Ready = GL_TRUE;   /* correct, see spec */
+
+      /* This is to satisfy the language of the specification: "In the initial
+       * state of a query object, the result is available" (OpenGL 3.1 ยง
+       * 2.13).
+       */
+      q->Ready = GL_TRUE;
    }
    return q;
 }