Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2018-04-04 13:15:27 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2018-04-04 13:28:20 +0300
commit9c7bd1fad902a8258aca83e4413e797036d017da (patch)
treed1be977dfbb7c9b98d4a4595cd83eea1044e0bde /source/blender/draw
parent3a566687e1159904fee4ac7aef5daf38fb4e00ed (diff)
Cleanup: simplify fix for T53497, this part is not strictly needed.
Diffstat (limited to 'source/blender/draw')
-rw-r--r--source/blender/draw/intern/draw_manager_data.c19
1 files changed, 1 insertions, 18 deletions
diff --git a/source/blender/draw/intern/draw_manager_data.c b/source/blender/draw/intern/draw_manager_data.c
index 23e339bcd8f..b09e45e90f7 100644
--- a/source/blender/draw/intern/draw_manager_data.c
+++ b/source/blender/draw/intern/draw_manager_data.c
@@ -82,24 +82,7 @@ static void drw_shgroup_uniform_create_ex(DRWShadingGroup *shgroup, int loc,
uni->length = length;
uni->arraysize = arraysize;
- /* Insert into list sorted by location so that slots are consistenly assigned
- * for different draw calls, to avoid shader specialization/patching by the driver. */
- DRWUniform *next = shgroup->uniforms;
- DRWUniform *prev = NULL;
-
- while (next && loc > next->location) {
- prev = next;
- next = next->next;
- }
-
- if (prev) {
- prev->next = uni;
- }
- else {
- shgroup->uniforms = uni;
- }
-
- uni->next = next;
+ BLI_LINKS_PREPEND(shgroup->uniforms, uni);
}
static void drw_shgroup_builtin_uniform(