Skip to content
Snippets Groups Projects
Commit c2268223 authored by Danylo Piliaiev's avatar Danylo Piliaiev :flag_ua: Committed by Andres Gomez
Browse files

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: default avatarDanylo Piliaiev <danylo.piliaiev@globallogic.com>
Reviewed-by: default avatarTapani Pälli <tapani.palli@intel.com>
(cherry picked from commit 479a849a)
parent b9a97a8b
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment