Don't try to swizzle void.

This commit is contained in:
Aaron Muir Hamilton
2017-10-17 08:11:33 +00:00
parent 856502cb1b
commit 5313613dd1
4 changed files with 44 additions and 1 deletions

8
Test/invalidSwizzle.vert Normal file
View File

@@ -0,0 +1,8 @@
#version 420
void f();
void main() {
f().xx; // Scalar swizzle does not apply to void
f().xy; // Vector swizzle does not apply either
}