diff options
author | Carl Worth <cworth@cworth.org> | 2012-12-17 13:38:39 -0800 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2013-01-15 13:10:58 -0800 |
commit | c7df9c0e12e000f3d2fd57ebb3072f4afbda8579 (patch) | |
tree | fc5bc43d099a7a822b790d5c6499e6503d487177 /src | |
parent | 133383f77a526537f2bf32705ce391370dcbc84f (diff) |
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 <ian.d.romanick@intel.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/main/queryobj.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/mesa/main/queryobj.c b/src/mesa/main/queryobj.c index aa7c800d45b..b482b1518de 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; } |