qt5base-lts/tests/auto/gui/util/qshadergenerator
Nicolas Guichard 49dbe760e4 Fix QShaderGenerator crashing when a node port name prefixed another one
QShaderGenerator didn't handle substitutions like
`vec4 $color = mix($color1, $color2, $fac);`

Note that `$color` is a prefix to `$color1` and `$color2`. For the
substitution `QByteArray::replace` was used so if `$color` was handled
first and replaced by `v1`, `$color1` and `$color2` were never correctly
replaced and instead became `v11` and `v12` which caused a crash later
on.

Change-Id: Idaf800fdac468f33c323eb722701da5f8eb918d6
Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
2020-02-19 08:47:58 +01:00
..
qshadergenerator.pro [Shader Graph Gen.] Introduce QShaderGenerator 2017-06-20 21:35:40 +00:00
tst_qshadergenerator.cpp Fix QShaderGenerator crashing when a node port name prefixed another one 2020-02-19 08:47:58 +01:00