mesa: pass correct constant type to _mesa_fetch_state()
authorBrian Paul <brianp@vmware.com>
Thu, 4 Aug 2011 22:01:27 +0000 (16:01 -0600)
committerBrian Paul <brianp@vmware.com>
Thu, 4 Aug 2011 22:02:08 +0000 (16:02 -0600)
Fixes assorted warnings about float vs. gl_constant_value pointers.

src/mesa/program/prog_statevars.c

index 16f9690e8659746d6428b6f7ec528481ae9754a4..6aa2409e85eed0e8d731a4da0e7a5eaff32a1c18 100644 (file)
@@ -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);
       }
    }
 }