mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 13:21:05 +00:00
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:
parent
334f06fca3
commit
200c842944
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user