]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/glcanvas.cpp
cleanup - reformatting; simplified OnPaint
[wxWidgets.git] / src / gtk / glcanvas.cpp
index 7ce06c5f0bc49e5f915e71fbea4ee7d8c034055c..7e2e6e74633d8dd0344641b9526e78bc14c063da 100644 (file)
@@ -401,7 +401,6 @@ bool wxGLCanvas::Create( wxWindow *parent,
         colormap = gdk_colormap_new( visual, TRUE );
 
         gtk_widget_push_colormap( colormap );
         colormap = gdk_colormap_new( visual, TRUE );
 
         gtk_widget_push_colormap( colormap );
-        gtk_widget_push_visual( visual );
 
         wxWindow::Create( parent, id, pos, size, style, name );
         m_glWidget = m_wxwindow;
 
         wxWindow::Create( parent, id, pos, size, style, name );
         m_glWidget = m_wxwindow;
@@ -426,7 +425,6 @@ bool wxGLCanvas::Create( wxWindow *parent,
 
     if (gtk_check_version(2,2,0) != NULL)
     {
 
     if (gtk_check_version(2,2,0) != NULL)
     {
-        gtk_widget_pop_visual();
         gtk_widget_pop_colormap();
     }
 
         gtk_widget_pop_colormap();
     }