parent
ca13951205
commit
46466be045
5 changed files with 78 additions and 3 deletions
19
Test/noMatchingFunction.frag
Normal file
19
Test/noMatchingFunction.frag
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
#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);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue