diff options
author | Nicolas Guichard <nicolas.guichard@kdab.com> | 2020-02-18 17:40:04 +0100 |
---|---|---|
committer | Paul Lemire <paul.lemire@kdab.com> | 2020-02-28 06:54:38 +0000 |
commit | 8c8f4c8c48b9ff22aeb6067d5d42d94e8e00c623 (patch) | |
tree | 76b1e8300e7a46642e9a097c902af3f0ca299071 /LICENSE.LGPLv3 | |
parent | 157be588f7f3b6273b776c9a61ec8eddbd74c0d7 (diff) |
QShaderGenerator: Allow more expressions in input nodes
Currently QShaderGenerator will crash when encountering some expressions
in input nodes.
For example, this node prototype would make it crash:
"VERTEX_COLOR": {
"outputs": ["color", "alpha"],
"rules": [
"headerSnippets": ["in vec4 vertexColor;"],
"substitution": "vec3 $color = vertexColor.rgb;
float $alpha = vertexColor.a;"
]
}
Change-Id: I37abb8099d376843a4cb13228140467dc1b8f60c
Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
(cherry picked from commit f9086ebd0198c53e8a811af47e0ff0c84d78eb30)
Diffstat (limited to 'LICENSE.LGPLv3')
0 files changed, 0 insertions, 0 deletions