From e7ead9d700b0fd3e216e5720e16fbf46d711607f Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Mon, 6 Feb 2006 16:58:19 +0000 Subject: [PATCH] guard against early redraws git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37352 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/mac/carbon/glcanvas.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mac/carbon/glcanvas.cpp b/src/mac/carbon/glcanvas.cpp index ac3533cefc..e64e4c01e3 100644 --- a/src/mac/carbon/glcanvas.cpp +++ b/src/mac/carbon/glcanvas.cpp @@ -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);