]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/contrib/glcanvas/glcanvas.i
Don't create a bitmap with dimensions <= 0...
[wxWidgets.git] / wxPython / contrib / glcanvas / glcanvas.i
index 96f19eb0655a209b13bb84d862ef5294712f782e..30be533da8d077b08b03c4f7a87048525545782d 100644 (file)
 
 %{
 #include "export.h"
+#ifdef __WXMSW__
+#include "myglcanvas.h"
+#else
 #include <wx/glcanvas.h>
+#endif
+
 %}
 
 //---------------------------------------------------------------------------
@@ -47,7 +52,7 @@ class wxGLCanvas;
 
 //---------------------------------------------------------------------------
 
-class wxGLContext {
+class wxGLContext : public wxObject {
 public:
     wxGLContext(bool isRGB, wxGLCanvas *win, const wxPalette& palette = wxNullPalette);
     ~wxGLContext();
@@ -111,8 +116,8 @@ public:
 
 %init %{
 
-//    wxClassInfo::CleanUpClasses();
-//    wxClassInfo::InitializeClasses();
+    wxClassInfo::CleanUpClasses();
+    wxClassInfo::InitializeClasses();
 
 %}