[Mesa-dev] [PATCH 3/4] queryobj: Add IsQuery flag, making ISQuery() return false before BeginQuery()

Carl Worth cworth at cworth.org
Wed Dec 19 12:47:37 PST 2012

Matt Turner <mattst88 at gmail.com> writes:
>> +   if (q->IsQuery)
>>        return GL_TRUE;
>>     else
>>        return GL_FALSE;
> Just return q->IsQuery here? It's already declared as GLboolean.

Yes, definitely. This code resulted from the squashing of two previous
commits, so it wasn't as obvious as that when I wrote it originally.

Thanks for the review.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20121219/1ac5d708/attachment.pgp>

More information about the mesa-dev mailing list