Properly handle 'default' nested in flow control, as well as default/case outside switch statements.
git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@24629 e7fa87d3-cd2b-0410-9028-fcbf551c1848
This commit is contained in:
@@ -109,8 +109,13 @@ void main()
|
||||
break;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
case 4:
|
||||
f = tan(x);
|
||||
if (f < 0.0)
|
||||
default: // ERROR
|
||||
break;
|
||||
}
|
||||
|
||||
case 5: // ERROR
|
||||
default: // ERROR
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user