From: Brian Paul Date: Thu, 4 Aug 2011 22:01:27 +0000 (-0600) Subject: mesa: pass correct constant type to _mesa_fetch_state() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bf8d06c518a8e17e485b18ba03be3e1b45cc7327;p=mesa.git mesa: pass correct constant type to _mesa_fetch_state() Fixes assorted warnings about float vs. gl_constant_value pointers. --- 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]); + ¶mList->ParameterValues[i][0].f); } } }