[Mesa-dev] [PATCH 5/7] mesa: Drop an extra copy-and-pasted copy in the program clone function.

Eric Anholt eric at anholt.net
Fri Sep 20 18:52:23 PDT 2013


---
 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 5dd68d9..aa3c5b4 100644
--- a/src/mesa/program/program.c
+++ b/src/mesa/program/program.c
@@ -485,7 +485,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;
-- 
1.8.4.rc3



More information about the mesa-dev mailing list