]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/glcmn.cpp
fix m_sizerPage memory leak for the wizards not using sizers (replaces patch 1708331...
[wxWidgets.git] / src / common / glcmn.cpp
index ffcb45a60366083877286f4be102f24b2cf00949..faa42827c15ab32fad333a3aabcb8c4de9eee148 100644 (file)
@@ -41,6 +41,17 @@ IMPLEMENT_CLASS(wxGLApp, wxApp)
 // implementation
 // ============================================================================
 
+wxGLCanvasBase::wxGLCanvasBase()
+{
+#if WXWIN_COMPATIBILITY_2_8
+    m_glContext = NULL;
+#endif
+
+    // we always paint background entirely ourselves so prevent wx from erasing
+    // it to avoid flicker
+    SetBackgroundStyle(wxBG_STYLE_CUSTOM);
+}
+
 void wxGLCanvasBase::SetCurrent(const wxGLContext& context) const
 {
     // although on MSW it works even if the window is still hidden, it doesn't