Don't try to swizzle void.
This commit is contained in:
8
Test/invalidSwizzle.vert
Normal file
8
Test/invalidSwizzle.vert
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user