vcl/skia/x11/salvd.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 4fe73837a0dacf47412a7c6dc5a3a24de3404ee8
Author:     Hossein <[email protected]>
AuthorDate: Wed Aug 27 16:22:26 2025 +0200
Commit:     Hossein <[email protected]>
CommitDate: Thu Aug 28 11:05:25 2025 +0200

    tdf#168139 Avoid assertion failure on X11 with Skia/Vulkan
    
    Using X11 backend (gen), LibreOffice produces assertion failure on a
    debug build when running with Skia/Vulkan. That is because of missing
    implementation for handling transparency on that platform.
    
    I turned the assert/TODO into a warning to avoid assertion failure.
    This is supposed to be only for X11, and is tested on Linux.
    
    Change-Id: Iea7ac732123446843aaa71748c10bc17e305fc8f
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190291
    Tested-by: Jenkins
    Reviewed-by: Hossein   <[email protected]>

diff --git a/vcl/skia/x11/salvd.cxx b/vcl/skia/x11/salvd.cxx
index 15ffaf880283..6f7a5abc089a 100644
--- a/vcl/skia/x11/salvd.cxx
+++ b/vcl/skia/x11/salvd.cxx
@@ -80,8 +80,8 @@ void X11SkiaSalVirtualDevice::ReleaseGraphics(SalGraphics*) { 
mbGraphicsAcquired
 
 bool X11SkiaSalVirtualDevice::SetSize(tools::Long nDX, tools::Long nDY, bool 
bAlphaMaskTransparent)
 {
-    assert(!bAlphaMaskTransparent && "TODO");
-    (void)bAlphaMaskTransparent;
+    //TODO: Handle transparent images if bAlphaMaskTransparent is set to true
+    SAL_WARN_IF(bAlphaMaskTransparent, "vcl", "Skia on X11 does not currently 
handle transparency");
     if (!nDX)
         nDX = 1;
     if (!nDY)

Reply via email to