Cleanup: simplify fix for T53497, this part is not strictly needed.
This commit is contained in:
parent
3a566687e1
commit
9c7bd1fad9
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue