[t_vp_build] Fix refcounting-related memory leak
authorNicolai Haehnle <nhaehnle@gmail.com>
Sat, 31 May 2008 22:10:45 +0000 (00:10 +0200)
committerNicolai Haehnle <nhaehnle@gmail.com>
Mon, 2 Jun 2008 16:42:52 +0000 (18:42 +0200)
commit96adcc2e214e2fdc2ad15ecac20b1066c6cdd1ca
treeaac1b54bf3697e993269e6d4a8f10e1f55fb28c1
parent934a53eb4406df9297f86cf12cacf5ba423e8af7
[t_vp_build] Fix refcounting-related memory leak

This memory leak is identical to the earlier one in texenvprogram.
Fixed by not creating an additional reference to new programs in cache_item.

On top of that, remove some duplicated state setting.
src/mesa/tnl/t_vp_build.c