diff options
author | Danylo Piliaiev <[email protected]> | 2018-08-13 18:57:38 +0300 |
---|---|---|
committer | Tapani Pälli <[email protected]> | 2018-08-15 10:01:43 +0300 |
commit | 479a849ad606482c3cf67157b77af94ecd450ace (patch) | |
tree | 87ab1770f59814b205567a0f228d18cde1e9a59d /src/mesa | |
parent | bffa025adaa68c429f86f1736600de7710b21a08 (diff) |
glsl: Avoid calling get_array_element for scalar constants
Accessing scalar constant as an array in function call or
initializer list triggered assert in get_array_element.
Examples:
func(0[0]);
vec2 t = { 0[0], 0 };
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=107550
Signed-off-by: Danylo Piliaiev <[email protected]>
Reviewed-by: Tapani Pälli <[email protected]>
Diffstat (limited to 'src/mesa')
0 files changed, 0 insertions, 0 deletions