mirror of
https://github.com/RPCS3/glslang.git
synced 2024-11-28 05:30:33 +00:00
46466be045
Check types before accessing typeName. Fix #2848.
20 lines
203 B
GLSL
20 lines
203 B
GLSL
#version 330
|
|
|
|
struct S
|
|
{
|
|
float a;
|
|
};
|
|
|
|
float func(S s)
|
|
{
|
|
return s.a;
|
|
}
|
|
|
|
layout(location = 0) out vec4 o_color;
|
|
|
|
void main()
|
|
{
|
|
float c = func(1.0f); // ERROR: no matching function
|
|
o_color = vec4(c);
|
|
}
|