Merge pull request #562 from sephiroth99/fragfix

Fix usage of mix in fragment shader
This commit is contained in:
Ben Vanik 2016-03-21 09:24:37 -07:00
commit ea7bad1035
1 changed files with 2 additions and 1 deletions

View File

@ -360,7 +360,8 @@ void main() {
// May need a usage map?
for (int i = 0; i < kMaxInterpolators; i++) {
EmitSource(
" r[%d] = mix(r[%d], ps_param_gen, state.ps_param_gen == %d);\n",
" r[%d] = mix(r[%d], ps_param_gen, bvec4(state.ps_param_gen == "
"%d));\n",
i, i, i);
}