mesa: compute tex env program key size based on nr_enabled_units
authorBrian Paul <brianp@vmware.com>
Wed, 2 Sep 2009 21:39:13 +0000 (15:39 -0600)
committerBrian Paul <brianp@vmware.com>
Thu, 3 Sep 2009 17:48:19 +0000 (11:48 -0600)
commit7a7d5879e28607c151132a8b6a07cf4be36b5b3e
tree516090dc61a1ea6edbd61bb778853274b5d089b6
parent5cd7042088bdd0b5d9a92f4fc927029a46a23734
mesa: compute tex env program key size based on nr_enabled_units

When no textures are enabled, the key size is 4 bytes.  If unit[0] is
enabled, the key size is 16 bytes.

Inspired by a patch from Chris Wilson.
src/mesa/main/texenvprogram.c