fix GLES compiler errors on anaglyph-to-sbs

This commit is contained in:
hunterk 2020-11-13 11:49:56 -06:00
parent 47c7288114
commit 78e36b5b05

View File

@ -128,8 +128,8 @@ void main()
vec4 frame2 = vec4(0.0);
if ( fragCoord2.x < 1.0 && fragCoord2.x > 0.0 && fragCoord2.y < 1.0 && fragCoord2.y > 0.0 )
frame2 = COMPAT_TEXTURE(Texture, warpCoord2);
frame1.rgb = (v_mode < 4) ? vec3(frame1.r) : vec3(frame1.g);
frame2.rgb = (v_mode != 4) ? frame2.b : frame2.g;
frame1.rgb = (int(v_mode) < 4) ? vec3(frame1.r) : vec3(frame1.g);
frame2.rgb = (int(v_mode) != 4) ? vec3(frame2.b) : vec3(frame2.g);
vec4 final = vec4(0.0);
if (palette > 0.5)
final = frame1 + frame2;