linker: Slight code rearrange to prevent duplication in the next commit
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
This commit is contained in:
@@ -928,13 +928,12 @@ link_update_uniform_buffer_variables(struct gl_linked_shader *shader)
|
|||||||
if ((ptrdiff_t) l != (end - begin))
|
if ((ptrdiff_t) l != (end - begin))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (strncmp(var->name, begin, l) == 0) {
|
found = strncmp(var->name, begin, l) == 0;
|
||||||
found = true;
|
} else {
|
||||||
var->data.location = j;
|
found = strcmp(var->name, blks[i]->Uniforms[j].Name) == 0;
|
||||||
break;
|
}
|
||||||
}
|
|
||||||
} else if (!strcmp(var->name, blks[i]->Uniforms[j].Name)) {
|
if (found) {
|
||||||
found = true;
|
|
||||||
var->data.location = j;
|
var->data.location = j;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user