diff --git a/etg/_glcanvas.py b/etg/_glcanvas.py index 457c681f..52992ed8 100644 --- a/etg/_glcanvas.py +++ b/etg/_glcanvas.py @@ -64,10 +64,9 @@ def run(): module.addHeaderCode('#include ') tools.generateStubs('wxUSE_GLCANVAS', module, - extraHdrCode=('static wxGLAttributes _NullGLAttributes;\n' - 'static wxGLContextAttrs _NULLGLContextAttrs;\n'), - typeValMap={'wxGLAttributes &': '_NullGLAttributes', - 'wxGLContextAttrs &': '_NULLGLContextAttrs', + extraHdrCode='#define wxGLCanvasName wxT("GLCanvas")\n', + typeValMap={'wxGLAttributes &': '*this', + 'wxGLContextAttrs &': '*this', }) c = module.find('wxGLContext')