From 07572621bc4515c71c56754a2bd9c7c832653d2b Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Thu, 19 Sep 2013 16:16:16 -0700 Subject: [PATCH] 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 --- src/mesa/program/program.c | 1 - 1 file changed, 1 deletion(-) 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; -- 2.30.2