llvmpipe: remove redundant tgsi_dup_tokens() call
authorBrian Paul <brianp@vmware.com>
Thu, 9 Sep 2010 16:03:46 +0000 (10:03 -0600)
committerBrian Paul <brianp@vmware.com>
Thu, 9 Sep 2010 16:04:39 +0000 (10:04 -0600)
We were calling this twice so the first allocation was orphaned/leaked.

src/gallium/drivers/llvmpipe/lp_state_fs.c

index 8f3976c0f9081b532a11d02620add05d3848e5b4..e17bfb490c26ccc9257a37912bdd67eb62af0c3d 100644 (file)
@@ -901,9 +901,6 @@ llvmpipe_create_fs_state(struct pipe_context *pipe,
       debug_printf("\n");
    }
 
-   /* Keep a copy of the tokens in shader->base.tokens */
-   shader->base.tokens = tgsi_dup_tokens(templ->tokens);
-
    return shader;
 }