Fix #1879: Check for valid variable before checking for unsized arrays.

The order of error checking was not quite being correct (maybe there is no correct
ordering, when many checks must be done and they affect each other).
So, check for block-name reuse twice.
This commit is contained in:
John Kessenich 2019-09-05 02:26:39 -06:00
parent 34953810a6
commit 664ad418f8
4 changed files with 17 additions and 7 deletions

View file

@ -47,4 +47,5 @@ void barWxyz()
int primitiveID()
{
return gl_PrimitiveID;
gl_PerFragment; // ERROR, block name can't get reused
}