projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
506989b
)
swrast: fix state validation bug for changing program constants
author
Brian Paul
<brianp@vmware.com>
Wed, 10 Jun 2009 15:18:22 +0000
(09:18 -0600)
committer
Brian Paul
<brianp@vmware.com>
Wed, 10 Jun 2009 15:31:01 +0000
(09:31 -0600)
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
patch
|
blob
|
history
diff --git
a/src/mesa/swrast/s_context.c
b/src/mesa/swrast/s_context.c
index f24f4fc59b2cc5e3a6aa761fc1342c9ca2e99d19..e7c2ace32c7e86a1678654b8891eb061806a1a66 100644
(file)
--- a/
src/mesa/swrast/s_context.c
+++ b/
src/mesa/swrast/s_context.c
@@
-289,6
+289,7
@@
_swrast_update_specular_vertex_add(GLcontext *ctx)
#define _SWRAST_NEW_DERIVED (_SWRAST_NEW_RASTERMASK | \
+ _NEW_PROGRAM_CONSTANTS | \
_NEW_TEXTURE | \
_NEW_HINT | \
_NEW_POLYGON )