diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-08-16 17:06:40 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-08-16 17:06:40 +0400 |
commit | fd7bffa3c5276229a0ca06e4ff59319fbfc674f9 (patch) | |
tree | efb4b73b9614d41f693009d35acacfe074455cd6 /source/blender/gpu/intern/gpu_draw.c | |
parent | 1677758e459dbbbc0ad8bd2cd87bfaf925414952 (diff) |
replace calls to BLI_linklist_append with BLI_linklist_prepend where order us unimportant, since append steps over the whole list each time.
Diffstat (limited to 'source/blender/gpu/intern/gpu_draw.c')
-rw-r--r-- | source/blender/gpu/intern/gpu_draw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/gpu/intern/gpu_draw.c b/source/blender/gpu/intern/gpu_draw.c index e9f9d4a3379..0d25d988df9 100644 --- a/source/blender/gpu/intern/gpu_draw.c +++ b/source/blender/gpu/intern/gpu_draw.c @@ -1216,7 +1216,7 @@ static LinkNode *image_free_queue = NULL; static void gpu_queue_image_for_free(Image *ima) { BLI_lock_thread(LOCK_OPENGL); - BLI_linklist_append(&image_free_queue, ima); + BLI_linklist_prepend(&image_free_queue, ima); BLI_unlock_thread(LOCK_OPENGL); } |