llvmpipe: Fix bad refactoring.
authorJosé Fonseca <jfonseca@vmware.com>
Sun, 17 Oct 2010 16:58:04 +0000 (09:58 -0700)
committerJosé Fonseca <jfonseca@vmware.com>
Sun, 17 Oct 2010 16:58:04 +0000 (09:58 -0700)
commita0add0446ca9dce6d4a96014c42ba6cf3a73a44a
tree8fda4596213d6acecd8dbadad88fcc4d35c81cd4
parentdc5bdbe0f96d288bc84d318d25a59dc13c1e81de
llvmpipe: Fix bad refactoring.

'i' and 'chan' have random values here, which could cause a buffer
overflow in debug builds, if chan > 4.
src/gallium/drivers/llvmpipe/lp_state_fs.c