aboutsummaryrefslogtreecommitdiff
path: root/mesalib/src/mesa/program/prog_statevars.c
diff options
context:
space:
mode:
Diffstat (limited to 'mesalib/src/mesa/program/prog_statevars.c')
-rw-r--r--mesalib/src/mesa/program/prog_statevars.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesalib/src/mesa/program/prog_statevars.c b/mesalib/src/mesa/program/prog_statevars.c
index ddda78e19..c68e1643a 100644
--- a/mesalib/src/mesa/program/prog_statevars.c
+++ b/mesalib/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);
}
}
}