X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e6afccba51e094572f31de65e939987ecc683caf..2cc78389312dce6285d0d6b6e891d24372252ada:/src/gtk1/glcanvas.cpp diff --git a/src/gtk1/glcanvas.cpp b/src/gtk1/glcanvas.cpp index 20ae99306b..a5ee3aa6bd 100644 --- a/src/gtk1/glcanvas.cpp +++ b/src/gtk1/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; }