Add new _mesa_lookup_parameter_constant() to search for a GLfloat4 constant
authorBrian Paul <brian.paul@tungstengraphics.com>
Wed, 15 Nov 2006 23:19:52 +0000 (23:19 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Wed, 15 Nov 2006 23:19:52 +0000 (23:19 +0000)
commit699a33ea77ecd164d7435811258eee96bd37aaa2
treefd16030266e9a089dc6042721932ce2bb1bd173d
parent408e01b9394d39ecd7755ca63b36017bbc0521d0
Add new _mesa_lookup_parameter_constant() to search for a GLfloat4 constant
in a parameter list.
Use it in _mesa_add_named_constant() and _mesa_add_unnamed_constant() to
avoid duplication of identical constants.
src/mesa/shader/program.c
src/mesa/shader/program.h