In _mesa_add_unnamed_constant() and _mesa_lookup_parameter_constant() allow swizzleOu...
authorBrian <brian@yutani.localnet.net>
Thu, 22 Mar 2007 15:07:27 +0000 (09:07 -0600)
committerBrian <brian@yutani.localnet.net>
Thu, 22 Mar 2007 15:07:27 +0000 (09:07 -0600)
commit1bf81e3c5d65b636658d11072f4f027f5c499396
tree9a32e209d11e797d390cc2b9961f8fa96010795c
parent1936b25ebd580c5ef9e8cb471a986da39ef46ca5
In _mesa_add_unnamed_constant() and _mesa_lookup_parameter_constant() allow swizzleOut==NULL.

There are times when we don't want to allow swizzling when searching for or
adding vector constants.  Passing NULL for swizzleOut disables swizzling.
This fixes a constant/swizzle bug in link_uniform_vars().
src/mesa/shader/nvfragparse.c
src/mesa/shader/prog_parameter.c
src/mesa/shader/slang/slang_link.c