From: Carl Worth Date: Mon, 17 Dec 2012 21:38:39 +0000 (-0800) Subject: Update comment to specify actual text being referenced from the specification. X-Git-Tag: mesa-9.1-rc1~354 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c7df9c0e12e000f3d2fd57ebb3072f4afbda8579;p=platform%2Fupstream%2Fmesa.git Update comment to specify actual text being referenced from the specification. 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 --- diff --git a/src/mesa/main/queryobj.c b/src/mesa/main/queryobj.c index aa7c800..b482b15 100644 --- a/src/mesa/main/queryobj.c +++ b/src/mesa/main/queryobj.c @@ -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; }