Fix OpenGL mix-blending when the source alpha is 0. (bug 1281593 part 2, r=mstange)

--HG--
extra : rebase_source : 78f3c5a99927d5100d93e161ab0e08574ee46f8c
This commit is contained in:
David Anderson 2016-08-02 11:43:15 -07:00
parent 334f06fca3
commit 200c842944

View File

@ -737,7 +737,7 @@ ProgramProfileOGL::BuildMixBlender(const ShaderConfigOGL& aConfig, std::ostrings
fs << " return color;" << endl;
fs << " }" << endl;
fs << " if (color.a == 0.0) {" << endl;
fs << " return backdrop;" << endl;
fs << " return vec4(0.0, 0.0, 0.0, 0.0);" << endl;
fs << " }" << endl;
// The spec assumes there is no premultiplied alpha. The backdrop is always