SPV: Fix #739: OpSelect can only operate on scalars and vectors.
This commit is contained in:
parent
173c0c01a6
commit
0479437a5c
4 changed files with 55 additions and 17 deletions
|
|
@ -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];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue