projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5cb0d74
)
Assert that there's no outstanding current state that needs to be flushed from the...
author
Brian
<brian.paul@tungstengraphics.com>
Wed, 17 Oct 2007 21:59:59 +0000
(15:59 -0600)
committer
Brian
<brian.paul@tungstengraphics.com>
Wed, 17 Oct 2007 21:59:59 +0000
(15:59 -0600)
Several of the state parameters use current state (such as materials).
Need to make sure those values are not stale.
src/mesa/shader/prog_statevars.c
patch
|
blob
|
history
diff --git
a/src/mesa/shader/prog_statevars.c
b/src/mesa/shader/prog_statevars.c
index d37d7fb9bf4d2f45a28eed84c76ff24afef11119..9a745a77e550dc009291e6044b60f84c1f09e0b2 100644
(file)
--- a/
src/mesa/shader/prog_statevars.c
+++ b/
src/mesa/shader/prog_statevars.c
@@
-815,6
+815,8
@@
_mesa_load_state_parameters(GLcontext *ctx,
if (!paramList)
return;
+ assert(ctx->Driver.NeedFlush == 0);
+
for (i = 0; i < paramList->NumParameters; i++) {
if (paramList->Parameters[i].Type == PROGRAM_STATE_VAR) {
_mesa_fetch_state(ctx,