llvmpipe: remove redundant tgsi_dup_tokens() call
We were calling this twice so the first allocation was orphaned/leaked.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user