Skip to content
This repository was archived by the owner on Aug 27, 2022. It is now read-only.

Commit bcc85aa

Browse files
dekonoplyovAlexey Ushakov
authored andcommitted
8251032: Colors with texture background look different with Alpha Com…
1 parent a3d5998 commit bcc85aa

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/java.desktop/macosx/native/libawt_lwawt/java2d/metal/MTLPipelineStatesStorage.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,8 @@ static void setBlendingFactors(
262262
} else {
263263
cad.destinationAlphaBlendFactor = MTLBlendFactorOneMinusSourceAlpha;
264264
}
265+
cad.sourceAlphaBlendFactor = MTLBlendFactorSourceAlpha;
266+
265267
if (!renderOptions->srcFlags.isPremultiplied) {
266268
cad.sourceRGBBlendFactor = MTLBlendFactorSourceAlpha;
267269
}

0 commit comments

Comments
 (0)