From 2e413a1c33e7199a70208fcbee23892a11688368 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Wed, 8 Jul 2020 09:35:42 -0700 Subject: [PATCH] Fix compilation errors in glcanvas stubs --- etg/_glcanvas.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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')