]> git.saurik.com Git - wxWidgets.git/commitdiff
guard against early redraws
authorStefan Csomor <csomor@advancedconcepts.ch>
Mon, 6 Feb 2006 16:58:19 +0000 (16:58 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Mon, 6 Feb 2006 16:58:19 +0000 (16:58 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37352 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/glcanvas.cpp

index ac3533cefcf114a14f69dc6ff91fb5d7426c1f96..e64e4c01e3895e134792620fd4f8ac11f16dde7a 100644 (file)
@@ -213,6 +213,8 @@ bool wxGLCanvas::Create(wxWindow *parent, const wxGLContext *shared, wxWindowID
                         const wxPoint& pos, const wxSize& size, long style, const wxString& name,
                         int *attribList, const wxPalette& palette)
 {
+    m_macCanvasIsShown = false ;
+    m_glContext = 0 ;
     wxWindow::Create( parent, id, pos, size, style, name );
     
     AGLPixelFormat fmt = ChoosePixelFormat(attribList);