diff options
author | Chia-I Wu <[email protected]> | 2010-06-30 14:42:00 +0800 |
---|---|---|
committer | Chia-I Wu <[email protected]> | 2010-06-30 18:32:48 +0800 |
commit | 2d8e70fcd57b23786e3f4196f35440ed1861a98b (patch) | |
tree | 9b21545ab36d32e97cf360f8cfc5280ee1afce69 /src | |
parent | a2311400fe9385c39a278eb624dc60a0a635c838 (diff) |
st/vega: Match MALLOC/FREE for vg_shader.
A vg_shader is destroyed with FREE.
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/state_trackers/vega/shaders_cache.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/state_trackers/vega/shaders_cache.c b/src/gallium/state_trackers/vega/shaders_cache.c index b907a609b3c..53e6bfcf16b 100644 --- a/src/gallium/state_trackers/vega/shaders_cache.c +++ b/src/gallium/state_trackers/vega/shaders_cache.c @@ -410,7 +410,7 @@ struct vg_shader * shader_create_from_text(struct pipe_context *pipe, const char *txt, int num_tokens, int type) { - struct vg_shader *shader = (struct vg_shader *)malloc( + struct vg_shader *shader = (struct vg_shader *)MALLOC( sizeof(struct vg_shader)); struct tgsi_token *tokens = tokens_from_assembly(txt, num_tokens); struct pipe_shader_state state; |