summaryrefslogtreecommitdiffstats
path: root/tests/testserver
diff options
context:
space:
mode:
authorNicolas Guichard <nicolas.guichard@kdab.com>2020-02-14 12:50:00 +0100
committerNicolas Guichard <nicolas.guichard@kdab.com>2020-02-20 06:43:03 +0100
commitc2827e617c40440c9ab5086c767b78c9d8b9d8fd (patch)
treed55dcf6393d4545dc5a9e82371ca3f14fc0bb5d8 /tests/testserver
parent27493cc4f20958f03de4099fac8ba2fc05e50364 (diff)
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 (cherry picked from commit 49dbe760e4e0d8a781b5336efdce4748a7d73a33) Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Diffstat (limited to 'tests/testserver')
0 files changed, 0 insertions, 0 deletions