Handle wxGLCanvas::CreateSurface which is only available on EGL

This commit is contained in:
Scott Talbert
2023-07-14 13:23:03 -04:00
parent 9cfb59d38d
commit 371101db7a

View File

@@ -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)