mesa: Don't skip glGetProgramEnvParam4dvARB if there was already an error.
authorEric Anholt <eric@anholt.net>
Tue, 28 Jun 2011 20:55:44 +0000 (13:55 -0700)
committerEric Anholt <eric@anholt.net>
Wed, 6 Jul 2011 18:17:19 +0000 (11:17 -0700)
commite9d563e3ffed8eadde41c8cb25eaa42e20e9688f
tree79b6e1296bc1cea62665564fc18d19842dd89bb8
parentb043409adfa6ffa6dc78331258de52f7fa6d59aa
mesa: Don't skip glGetProgramEnvParam4dvARB if there was already an error.

Fixes a bug caught by oglconform, and now piglit
ARB_vertex_program/getenv4d-with-error.  The wrapping of an existing
GL function made it so that we couldn't distinguish an error in
looking up our arguments from an existing error.  Instead, make a
helper function to choose the param, and use it from multiple callers.

v2: Move the success case line into the conditional, use COPY_4V more.
src/mesa/main/arbprogram.c