mesa: Fix glGet of ES2's GL_MAX_*_VECTORS properties.
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 24 Nov 2010 21:59:46 +0000 (13:59 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 24 Nov 2010 22:09:32 +0000 (14:09 -0800)
commit1197393faa285bee0d99409a1c82f575dbcbc708
tree1c3bf955d49339235ce082d4e89aa44a7eced9b2
parentee88727df8b133e99608e5d30cbd50fb6e11628a
mesa: Fix glGet of ES2's GL_MAX_*_VECTORS properties.

Previously, the get table listed all three as having custom locations,
yet find_custom_value did not have cases to handle them.

MAX_VARYING_VECTORS does not need a custom location since MaxVaryings is
already stored as float[4] (or vec4).  MaxUniformComponents is stored as
the number of floats, however, so a custom implementation that divides
by 4 is necessary.

Fixes bugs.freedesktop.org #31495.
src/mesa/main/get.c