SPV: Fix #739: OpSelect can only operate on scalars and vectors.

This commit is contained in:
John Kessenich
2017-03-01 13:49:11 -07:00
parent 173c0c01a6
commit 0479437a5c
4 changed files with 55 additions and 17 deletions

View File

@@ -135,4 +135,7 @@ void main()
b = !b;
FragColor = b ? vec4(i) + vec4(f) + v : v;
mat4 m1 = mat4(1.0), m2 = mat4(0.0);
FragColor += (b ? m1 : m2)[1];
}