X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e6afccba51e094572f31de65e939987ecc683caf..d6ddcd574bce0167851aef142be1f9722c694654:/src/gtk/glcanvas.cpp diff --git a/src/gtk/glcanvas.cpp b/src/gtk/glcanvas.cpp index 20ae99306b..a5ee3aa6bd 100644 --- a/src/gtk/glcanvas.cpp +++ b/src/gtk/glcanvas.cpp @@ -302,7 +302,7 @@ bool wxGLCanvas::Create( wxWindow *parent, data[6] = GLX_GREEN_SIZE; data[7] = 1; data[8] = GLX_BLUE_SIZE; data[9] = 1; data[10] = GLX_ALPHA_SIZE; data[11] = 0; - data[13] = None; + data[12] = None; attribList = (int*) data; } @@ -391,6 +391,12 @@ bool wxGLCanvas::Create( wxWindow *parent, gtk_widget_pop_visual(); gtk_widget_pop_colormap(); + if (GTK_WIDGET_REALIZED(m_wxwindow)) + gtk_glwindow_realized_callback( m_wxwindow, this ); + + if (GTK_WIDGET_MAPPED(m_wxwindow)) + gtk_glwindow_map_callback( m_wxwindow, this ); + return TRUE; }