[Libreoffice-commits] core.git: vcl/skia
LuboÅ¡ LuÅák (via logerrit)
logerrit at kemper.freedesktop.org
Tue Oct 6 12:52:38 UTC 2020
vcl/skia/x11/gdiimpl.cxx | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit e1482daecff877e3b0e22f1fc864e614376cb6b1
Author: Luboš Luňák <l.lunak at collabora.com>
AuthorDate: Tue Oct 6 14:51:21 2020 +0200
Commit: Luboš Luňák <l.lunak at collabora.com>
CommitDate: Tue Oct 6 14:51:56 2020 +0200
add missing null pointer check
It's possible to trigger this case, and the windows variant already
has the check.
Change-Id: I465fbccb8910bd1b529a2639f34249c18289baa8
diff --git a/vcl/skia/x11/gdiimpl.cxx b/vcl/skia/x11/gdiimpl.cxx
index 9b93a603dc38..d993cf61d8d7 100644
--- a/vcl/skia/x11/gdiimpl.cxx
+++ b/vcl/skia/x11/gdiimpl.cxx
@@ -140,7 +140,8 @@ void X11SkiaSalGraphicsImpl::performFlush()
SkiaZone zone;
flushDrawing();
// TODO XPutImage() is somewhat inefficient, XShmPutImage() should be preferred.
- mWindowContext->swapBuffers();
+ if (mWindowContext)
+ mWindowContext->swapBuffers();
}
std::unique_ptr<sk_app::WindowContext> createVulkanWindowContext(bool temporary)
More information about the Libreoffice-commits
mailing list