Fix OpenGL mix-blending when the source alpha is 0. (bug 1281593 part 2, r=mstange)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user