From: Eric Anholt Date: Thu, 19 Sep 2013 23:16:16 +0000 (-0700) Subject: mesa: Drop an extra copy-and-pasted copy in the program clone function. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=07572621bc4515c71c56754a2bd9c7c832653d2b;p=mesa.git mesa: Drop an extra copy-and-pasted copy in the program clone function. Reviewed-by: Brian Paul Reviewed-by: Kenneth Graunke Reviewed-by: Ian Romanick --- diff --git a/src/mesa/program/program.c b/src/mesa/program/program.c index 3a1eb73d780..093d37297b4 100644 --- a/src/mesa/program/program.c +++ b/src/mesa/program/program.c @@ -477,7 +477,6 @@ _mesa_clone_program(struct gl_context *ctx, const struct gl_program *prog) if (prog->Parameters) clone->Parameters = _mesa_clone_parameter_list(prog->Parameters); memcpy(clone->LocalParams, prog->LocalParams, sizeof(clone->LocalParams)); - memcpy(clone->LocalParams, prog->LocalParams, sizeof(clone->LocalParams)); clone->IndirectRegisterFiles = prog->IndirectRegisterFiles; clone->NumInstructions = prog->NumInstructions; clone->NumTemporaries = prog->NumTemporaries;