diff options
author | Timothy Arceri <[email protected]> | 2017-03-10 11:30:01 +1100 |
---|---|---|
committer | Timothy Arceri <[email protected]> | 2017-03-13 09:50:19 +1100 |
commit | df1d5fc442188343ae885c89b8601476a9988bba (patch) | |
tree | de371f43cb58f48868f6b74b3f9ecf36a4c45481 /src/mesa/state_tracker | |
parent | ca76a2ba1b83ca837a198dc58ef3962d1ca71c68 (diff) |
glsl: don't use ralloc for blob creation
There is no need to use ralloc here.
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/mesa/state_tracker')
-rw-r--r-- | src/mesa/state_tracker/st_shader_cache.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/state_tracker/st_shader_cache.c b/src/mesa/state_tracker/st_shader_cache.c index f22380ce729..43831947b23 100644 --- a/src/mesa/state_tracker/st_shader_cache.c +++ b/src/mesa/state_tracker/st_shader_cache.c @@ -68,7 +68,7 @@ st_store_tgsi_in_disk_cache(struct st_context *st, struct gl_program *prog, return; unsigned char *sha1; - struct blob *blob = blob_create(NULL); + struct blob *blob = blob_create(); switch (prog->info.stage) { case MESA_SHADER_VERTEX: { @@ -134,7 +134,7 @@ st_store_tgsi_in_disk_cache(struct st_context *st, struct gl_program *prog, _mesa_shader_stage_to_string(prog->info.stage), sha1_buf); } - ralloc_free(blob); + free(blob); } static void |