[Libreoffice-commits] core.git: vcl/unx

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Mon Oct 14 07:53:48 UTC 2019


 vcl/unx/gtk3/gtk3gtkinst.cxx |    7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

New commits:
commit fb098c51e731ab92198db9822d4de757469ee804
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Sun Oct 13 20:48:14 2019 +0100
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Mon Oct 14 09:52:58 2019 +0200

    Related: tdf#124729 check error status before continuing
    
    Change-Id: Ic39e569121b2646995b8dec50c3941db65fdd500
    Reviewed-on: https://gerrit.libreoffice.org/80745
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/vcl/unx/gtk3/gtk3gtkinst.cxx b/vcl/unx/gtk3/gtk3gtkinst.cxx
index 38fc905c8091..d050f624797c 100644
--- a/vcl/unx/gtk3/gtk3gtkinst.cxx
+++ b/vcl/unx/gtk3/gtk3gtkinst.cxx
@@ -1472,7 +1472,12 @@ private:
 
         GdkWindow *pWindow = gtk_widget_get_window(pParent);
         m_pContext = gdk_window_create_gl_context(pWindow, nullptr);
-        gdk_gl_context_realize(m_pContext, nullptr);
+        if (!m_pContext)
+            return false;
+
+        if (!gdk_gl_context_realize(m_pContext, nullptr))
+            return false;
+
         gdk_gl_context_make_current(m_pContext);
         glGenFramebuffersEXT(1, &m_nFrameBuffer);
         glGenRenderbuffersEXT(1, &m_nRenderBuffer);


More information about the Libreoffice-commits mailing list