mesa: Free the util shaders with the gallium's FREE.
This commit is contained in:
@@ -98,12 +98,12 @@ st_destroy_clear(struct st_context *st)
|
||||
struct pipe_context *pipe = st->pipe;
|
||||
|
||||
if (st->clear.vert_shader.tokens) {
|
||||
_mesa_free((void *) st->clear.vert_shader.tokens);
|
||||
util_free_shader(&st->clear.vert_shader);
|
||||
st->clear.vert_shader.tokens = NULL;
|
||||
}
|
||||
|
||||
if (st->clear.frag_shader.tokens) {
|
||||
_mesa_free((void *) st->clear.frag_shader.tokens);
|
||||
util_free_shader(&st->clear.frag_shader);
|
||||
st->clear.frag_shader.tokens = NULL;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user