From 371101db7a010d679d214fde617dae9de02008d9 Mon Sep 17 00:00:00 2001 From: Scott Talbert Date: Fri, 14 Jul 2023 13:23:03 -0400 Subject: [PATCH] Handle wxGLCanvas::CreateSurface which is only available on EGL --- etg/_glcanvas.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/etg/_glcanvas.py b/etg/_glcanvas.py index 52992ed8..2e578645 100644 --- a/etg/_glcanvas.py +++ b/etg/_glcanvas.py @@ -125,6 +125,15 @@ def run(): sipRes = wxGLCanvas::IsDisplaySupported(attribPtr); """) + c.find('CreateSurface').setCppCode("""\ + #if wxUSE_GLCANVAS_EGL + return self->CreateSurface(); + #else + wxPyRaiseNotImplemented(); + return false; + #endif + """) + #----------------------------------------------------------------- tools.doCommonTweaks(module) tools.runGenerators(module) -- 2.43.0