OSDN Git Service

swrast: fix state validation bug for changing program constants
authorBrian Paul <brianp@vmware.com>
Wed, 10 Jun 2009 15:18:22 +0000 (09:18 -0600)
committerBrian Paul <brianp@vmware.com>
Wed, 10 Jun 2009 15:31:01 +0000 (09:31 -0600)
commit88527220e44fd36c317f73e667bc6abebb0af112
tree0ad601e7dbf28fa26515e4bfe86f3c817b23012e
parent506989b20e18be0d2b849ad17710108832040207
swrast: fix state validation bug for changing program constants

Add _NEW_PROGRAM_CONSTANTS to _SWRAST_NEW_DERIVED.
This makes sure that we update the fragment shader's constants when state
vars (such as point size) changes.
Fixes the progs/glsl/points.c demo.
src/mesa/swrast/s_context.c