Fix #1720: Give an error for parameter mismatched image format.
This commit is contained in:
parent
0e5d1bb66a
commit
08d61df040
10 changed files with 82 additions and 83 deletions
|
|
@ -166,8 +166,8 @@ void main()
|
|||
v.x = func2(a.x, b.x, c.x, d.x); // precise!
|
||||
func3(a.x * b.x, c.x * d.x, v.x); // precise!
|
||||
|
||||
funcA(img1); // OK, adding "restrict" is allowed
|
||||
funcB(img2); // illegal, stripping "coherent" is not
|
||||
funcA(img1); // OK, adding "restrict" is allowed, ERROR, changing formats
|
||||
funcB(img2); // illegal, stripping "coherent" is not, ERROR, changing formats
|
||||
|
||||
{
|
||||
struct light {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue