fix crash when reparenting, #3900

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@60708 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Paul Cornett
2009-05-21 17:58:40 +00:00
parent 27269a137c
commit a69ab7e06b

View File

@@ -106,6 +106,8 @@ void wxGLContext::SetCurrent(const wxGLCanvas& win) const
if (m_glContext)
{
GdkWindow *window = GTK_PIZZA(win.m_wxwindow)->bin_window;
if (window == NULL)
return;
if (wxGLCanvas::GetGLXVersion() >= 13)
// GLX >= 1.3