mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 18:18:06 +02:00
linker: Fix a slightly incorrect comment
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
parent
f3650b05cf
commit
9f0e98d1df
1 changed files with 4 additions and 1 deletions
|
|
@ -1342,7 +1342,10 @@ assign_attribute_or_color_locations(gl_shader_program *prog,
|
|||
}
|
||||
}
|
||||
|
||||
/* The location was explicitly assigned, nothing to do here.
|
||||
/* If the variable is not a built-in and has a location statically
|
||||
* assigned in the shader (presumably via a layout qualifier), make sure
|
||||
* that it doesn't collide with other assigned locations. Otherwise,
|
||||
* add it to the list of variables that need linker-assigned locations.
|
||||
*/
|
||||
const unsigned slots = count_attribute_slots(var->type);
|
||||
if (var->location != -1) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue