Skip to content

Commit 6d645da

Browse files
committed
Disable blending of hole punching buffers with rounded rect clip
1 parent 2d9c61e commit 6d645da

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Source/WebCore/platform/graphics/texmap/TextureMapperGL.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -712,15 +712,15 @@ void TextureMapperGL::drawSolidColor(const FloatRect& rect, const Transformation
712712
flags |= ShouldAntialias | (isBlendingAllowed ? ShouldBlend : 0);
713713
}
714714

715-
if (clipStack().isRoundedRectClipEnabled()) {
715+
if (clipStack().isRoundedRectClipEnabled() && isBlendingAllowed) {
716716
options.add(TextureMapperShaderProgram::RoundedRectClip);
717717
flags |= ShouldBlend;
718718
}
719719

720720
Ref<TextureMapperShaderProgram> program = data().getShaderProgram(options);
721721
glUseProgram(program->programID());
722722

723-
if (clipStack().isRoundedRectClipEnabled())
723+
if (options.contains(TextureMapperShaderProgram::RoundedRectClip))
724724
prepareRoundedRectClip(program.get(), clipStack().roundedRectComponents(), clipStack().roundedRectInverseTransformComponents(), clipStack().roundedRectCount());
725725

726726
auto [r, g, b, a] = premultiplied(color.toColorTypeLossy<SRGBA<float>>()).resolved();

0 commit comments

Comments
 (0)