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:
@@ -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
|
||||
|
Reference in New Issue
Block a user