Assert that there's no outstanding current state that needs to be flushed from the vbo in _mesa_load_state_parameters().

Several of the state parameters use current state (such as materials).
Need to make sure those values are not stale.
This commit is contained in:
Brian
2007-10-17 15:59:59 -06:00
parent 5cb0d749b0
commit 420c062cb6

View File

@@ -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,