Update comment to specify actual text being referenced from the specification.
[mesa.git] / 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;
 }