commit | 07c0bcea92cb78bb886c0f94c204b4ee3cf0bbe8 | [log] [tgz] |
---|---|---|
author | Aaron Muir Hamilton <aaron@correspondwith.me> | Sat Oct 21 19:13:42 2017 +0000 |
committer | Aaron Muir Hamilton <aaron@correspondwith.me> | Sat Oct 21 19:54:37 2017 +0000 |
tree | 0566f70baff3172751c7e61b9a30033d838ba188 | |
parent | b1eaf82cc8f0ddb8976593aca5dc09dc79332e91 [diff] [blame] |
Only try swizzles on vectors, numbers, and booleans.
diff --git a/Test/invalidSwizzle.vert b/Test/invalidSwizzle.vert index 00b5625..799ff87 100644 --- a/Test/invalidSwizzle.vert +++ b/Test/invalidSwizzle.vert
@@ -1,8 +1,10 @@ #version 420 void f(); +uniform sampler2D s; void main() { + vec2 v = s.rr; // Swizzles do not apply to samplers f().xx; // Scalar swizzle does not apply to void f().xy; // Vector swizzle does not apply either } \ No newline at end of file