Cleanup: simplify fix for T53497, this part is not strictly needed.

This commit is contained in:
Brecht Van Lommel 2018-04-04 12:15:27 +02:00
parent 3a566687e1
commit 9c7bd1fad9
1 changed files with 1 additions and 18 deletions

View File

@ -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(