mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 13:28:06 +02:00
linker: Add comment about bug in initializer handling
This commit is contained in:
parent
8fe8a814b0
commit
de415b7f4b
1 changed files with 8 additions and 0 deletions
|
|
@ -314,6 +314,14 @@ cross_validate_globals(struct gl_shader_program *prog,
|
|||
* have an initializer but a later instance does, copy the
|
||||
* initializer to the version stored in the symbol table.
|
||||
*/
|
||||
/* FINISHME: This is wrong. The constant_value field should
|
||||
* FINISHME: not be modified! Imagine a case where a shader
|
||||
* FINISHME: without an initializer is linked in two different
|
||||
* FINISHME: programs with shaders that have differing
|
||||
* FINISHME: initializers. Linking with the first will
|
||||
* FINISHME: modify the shader, and linking with the second
|
||||
* FINISHME: will fail.
|
||||
*/
|
||||
existing->constant_value = var->constant_value->clone(NULL);
|
||||
}
|
||||
} else
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue