Skip to content

Commit

Permalink
Handle wxGLCanvas::CreateSurface which is only available on EGL
Browse files Browse the repository at this point in the history
  • Loading branch information
swt2c committed Jul 14, 2023
1 parent 9cfb59d commit 371101d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions etg/_glcanvas.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 371101d

Please sign in to comment.