diff options
author | Arnaud VERSINI <arnaud.versini@libreoffice.org> | 2022-04-30 19:25:15 +0200 |
---|---|---|
committer | Luboš Luňák <l.lunak@collabora.com> | 2022-05-04 06:04:52 +0200 |
commit | 1e8db42c878b0e0608717cec8e012269856e5934 (patch) | |
tree | b6ca150a4f238104af656e42e909f295e6526e06 | |
parent | bfb6a42e26de28d88ced43eb3a2c63ce323d33aa (diff) |
vcl : avoid recursive call if skia context creation failed.
To avoid this bactrace : https://crashreport.libreoffice.org/stats/crash_details/4d1984f3-3352-49fa-8569-ebf6994ed216
Change-Id: I45ae8b56191c546c551ccaf48d5ab27a20b8e0e6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133662
Tested-by: Jenkins
Reviewed-by: Arnaud Versini <arnaud.versini@libreoffice.org>
-rw-r--r-- | vcl/skia/gdiimpl.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/skia/gdiimpl.cxx b/vcl/skia/gdiimpl.cxx index c253ceb3a2df..82f25ad17c2d 100644 --- a/vcl/skia/gdiimpl.cxx +++ b/vcl/skia/gdiimpl.cxx @@ -301,7 +301,7 @@ void SkiaSalGraphicsImpl::createWindowSurface(bool forceRaster) createWindowSurfaceInternal(forceRaster); if (!mSurface) { - switch (renderMethodToUse()) + switch (forceRaster ? RenderRaster : renderMethodToUse()) { case RenderVulkan: SAL_WARN("vcl.skia", |