aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2011-08-04 16:01:27 -0600
committerBrian Paul <[email protected]>2011-08-04 16:02:08 -0600
commitbf8d06c518a8e17e485b18ba03be3e1b45cc7327 (patch)
treee87ccc56e82e9aa060930989ddd61132a520a589 /src
parent324857599b2a4735c86e54da9a1776c034dadf72 (diff)
mesa: pass correct constant type to _mesa_fetch_state()
Fixes assorted warnings about float vs. gl_constant_value pointers.
Diffstat (limited to 'src')
-rw-r--r--src/mesa/program/prog_statevars.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/program/prog_statevars.c b/src/mesa/program/prog_statevars.c
index 16f9690e865..6aa2409e85e 100644
--- a/src/mesa/program/prog_statevars.c
+++ b/src/mesa/program/prog_statevars.c
@@ -1111,7 +1111,7 @@ _mesa_load_state_parameters(struct gl_context *ctx,
if (paramList->Parameters[i].Type == PROGRAM_STATE_VAR) {
_mesa_fetch_state(ctx,
paramList->Parameters[i].StateIndexes,
- paramList->ParameterValues[i]);
+ &paramList->ParameterValues[i][0].f);
}
}
}