1
Description: Fix SEGV when GLX not available.
2
Revised in the light of vadz's comment:
3
http://trac.wxwidgets.org/ticket/13566#comment:1
4
Bug-Debian: http://bugs.debian.org/575536
5
Forwarded: http://trac.wxwidgets.org/ticket/13566
6
Last-Update: 2011-10-18
8
diff --git a/src/gtk/glcanvas.cpp b/src/gtk/glcanvas.cpp
9
index 24ab43f..d30935c 100644
10
--- a/src/gtk/glcanvas.cpp
11
+++ b/src/gtk/glcanvas.cpp
12
@@ -327,6 +327,8 @@ bool wxGLCanvas::Create( wxWindow *parent,
15
m_fbc = fbc; // save for later use
17
+ wxWindow::Create(parent, id, pos, size, style, name);
18
wxCHECK_MSG( m_fbc, false, _T("required FBConfig couldn't be found") );
21
@@ -350,6 +352,8 @@ bool wxGLCanvas::Create( wxWindow *parent,
23
m_vi = vi; // save for later use
26
+ wxWindow::Create(parent, id, pos, size, style, name);
27
wxCHECK_MSG( m_vi, false, _T("required visual couldn't be found") );
29
// watch for the "parent-set" signal on m_wxwindow so we can set colormap