Don't try to swizzle void.
This commit is contained in:
parent
856502cb1b
commit
5313613dd1
4 changed files with 44 additions and 1 deletions
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
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue