vcl/unx/gtk3/gtk3gtkinst.cxx |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit 223b64a79b6fad317c5b1e7cfba080544376ee07
Author:     Caolán McNamara <[email protected]>
AuthorDate: Tue Oct 15 14:06:51 2019 +0100
Commit:     Michael Weghorn <[email protected]>
CommitDate: Wed Oct 16 08:16:26 2019 +0200

    Related: tdf#124729 check for gtk_gl_area_get_error before continuing
    
    Change-Id: Ib87f32c2fa8c561981920ea688ea723c8e59bead
    Reviewed-on: https://gerrit.libreoffice.org/80839
    Tested-by: Jenkins
    Reviewed-by: Michael Weghorn <[email protected]>

diff --git a/vcl/unx/gtk3/gtk3gtkinst.cxx b/vcl/unx/gtk3/gtk3gtkinst.cxx
index 5161c4dd9b89..4162fc263a62 100644
--- a/vcl/unx/gtk3/gtk3gtkinst.cxx
+++ b/vcl/unx/gtk3/gtk3gtkinst.cxx
@@ -1065,6 +1065,10 @@ private:
         gtk_widget_show_all(pParent);
 
         gtk_gl_area_make_current(GTK_GL_AREA(m_pGLArea));
+
+        if (gtk_gl_area_get_error(GTK_GL_AREA(m_pGLArea)))
+            return false;
+
         gtk_gl_area_attach_buffers(GTK_GL_AREA(m_pGLArea));
         glGenFramebuffersEXT(1, &m_nAreaFrameBuffer);
 
_______________________________________________
Libreoffice-commits mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to