diff options
author | Brian Paul <[email protected]> | 2010-12-03 16:45:44 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2010-12-03 16:45:44 -0700 |
commit | 64244dfd39b6e63a62a91ea2fb2743bd88a22476 (patch) | |
tree | a02eed9667829badcbbaf24f599b60b01cb138e3 /src/mesa/program | |
parent | 6f851e6642a640deda34790c14d178acac1c552e (diff) |
mesa: update comments, remove dead code
Diffstat (limited to 'src/mesa/program')
-rw-r--r-- | src/mesa/program/prog_statevars.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/program/prog_statevars.c b/src/mesa/program/prog_statevars.c index def1fbe1573..c310acb01d4 100644 --- a/src/mesa/program/prog_statevars.c +++ b/src/mesa/program/prog_statevars.c @@ -1068,7 +1068,9 @@ _mesa_program_state_string(const gl_state_index state[STATE_LENGTH]) * Loop over all the parameters in a parameter list. If the parameter * is a GL state reference, look up the current value of that state * variable and put it into the parameter's Value[4] array. - * This would be called at glBegin time when using a fragment program. + * Other parameter types never change or are explicitly set by the user + * with glUniform() or glProgramParameter(), etc. + * This would be called at glBegin time. */ void _mesa_load_state_parameters(struct gl_context *ctx, @@ -1079,8 +1081,6 @@ _mesa_load_state_parameters(struct gl_context *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, |