mesa: remove unneeded cast
authorBrian Paul <brianp@vmware.com>
Fri, 3 Dec 2010 23:40:36 +0000 (16:40 -0700)
committerBrian Paul <brianp@vmware.com>
Fri, 3 Dec 2010 23:40:36 +0000 (16:40 -0700)
src/mesa/program/prog_statevars.c

index 83bd3727f33cfc8e221bffc1c2ff9a39ec86065a..def1fbe1573551238d9c5a154426dad5ac7fe57c 100644 (file)
@@ -1084,7 +1084,7 @@ _mesa_load_state_parameters(struct gl_context *ctx,
    for (i = 0; i < paramList->NumParameters; i++) {
       if (paramList->Parameters[i].Type == PROGRAM_STATE_VAR) {
          _mesa_fetch_state(ctx,
-                          (gl_state_index *) paramList->Parameters[i].StateIndexes,
+                          paramList->Parameters[i].StateIndexes,
                            paramList->ParameterValues[i]);
       }
    }