From 5e4dfd68d690f38dd87609c39fc564b92bc6a0b3 Mon Sep 17 00:00:00 2001 From: Luboš Luňák Date: Mon, 30 Aug 2021 21:03:20 +0200 Subject: Skia's kDifference now seems to cause crashes also on AMD/Windows MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Ia60605407ba9f890db308301711f2d54bca92d56 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/121326 Tested-by: Jenkins Reviewed-by: Luboš Luňák --- vcl/skia/gdiimpl.cxx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/vcl/skia/gdiimpl.cxx b/vcl/skia/gdiimpl.cxx index cb8708fd5d60..97a34bb3f66f 100644 --- a/vcl/skia/gdiimpl.cxx +++ b/vcl/skia/gdiimpl.cxx @@ -1442,13 +1442,11 @@ void SkiaSalGraphicsImpl::invert(basegfx::B2DPolygon const& rPoly, SalInvert eFl // in drawing errors. Work that around by fetching the relevant part of the surface // and drawing using CPU. bool rasterHack = (isGPU() && getVendor() == DriverBlocklist::VendorIntel && !mXorMode); -#if defined LINUX // BackendTest::testDrawInvertTrackFrameWithRectangle() also has a problem - // with SkBlendMode::kDifference on AMD/Linux, leading to crashes or even + // with SkBlendMode::kDifference on AMD, leading to crashes or even // driver instability. Also work around by drawing using CPU. if (isGPU() && getVendor() == DriverBlocklist::VendorAMD && !mXorMode) rasterHack = true; -#endif SkPath aPath; aPath.incReserve(rPoly.count()); addPolygonToPath(rPoly, aPath); -- cgit