mesa: Don't append fog code for programs that don't output color.
authorJosé Fonseca <jfonseca@vmware.com>
Wed, 11 May 2011 13:01:17 +0000 (14:01 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Wed, 11 May 2011 13:04:08 +0000 (14:04 +0100)
commit7a271151a5d6990c8325008f19ab621d730d06c4
tree00cdf8154fd1e00a9254fbfdf99d80a33314972f
parent2812b60a84a2992516db28b37b305c2a7eb5f424
mesa: Don't append fog code for programs that don't output color.

Fixes fdo 36919.

NOTE: This is a candidate for the stable branches.

It should be cherry-picked to the sames branches that
3aa21f93dc1329c6f956277f2746c2a0bdae5446 was.
src/mesa/program/programopt.c