Re: [Mesa-dev] [PATCH v3 3/8] mesa: glGet: simplify the 'enum not found' condition

2012-10-01 Thread Oliver McFadden
On Mon, Oct 01, 2012 at 01:38:00PM +0300, Imre Deak wrote: > When traversing the hash table looking up an enum that is invalid we > eventually reach the first element in the descriptor array. By looking > at the type of that element, which is always TYPE_API_MASK, we know that > we can stop the sea

[Mesa-dev] [PATCH v3 3/8] mesa: glGet: simplify the 'enum not found' condition

2012-10-01 Thread Imre Deak
When traversing the hash table looking up an enum that is invalid we eventually reach the first element in the descriptor array. By looking at the type of that element, which is always TYPE_API_MASK, we know that we can stop the search and return error. Since this element is always the first it's e