mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2025-12-15 17:20:07 +01:00
Handle wxGLCanvas::CreateSurface which is only available on EGL
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user