Skip to content
Permalink
Browse files

8251032: Colors with texture background look different with Alpha Com…

  • Loading branch information
dekonoplyov authored and Alexey Ushakov committed Sep 2, 2020
1 parent a3d5998 commit bcc85aa76edab20430c3d28b56647c365696c69a
@@ -262,6 +262,8 @@ static void setBlendingFactors(
} else {
cad.destinationAlphaBlendFactor = MTLBlendFactorOneMinusSourceAlpha;
}
cad.sourceAlphaBlendFactor = MTLBlendFactorSourceAlpha;

if (!renderOptions->srcFlags.isPremultiplied) {
cad.sourceRGBBlendFactor = MTLBlendFactorSourceAlpha;
}

0 comments on commit bcc85aa

Please sign in to comment.