]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk1/glcanvas.cpp
post wxUniv merge fixes
[wxWidgets.git] / src / gtk1 / glcanvas.cpp
index 20ae99306bfc35cdcd19e900beda0ff4c4c5018a..a5ee3aa6bdbaacf9985b86583e8dedeb2079ec37 100644 (file)
@@ -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;
 }