Fixing Creation of wxGLCanvas on iOS

This commit is contained in:
Stefan Csomor
2017-09-25 17:42:11 +02:00
parent 9e88518eb2
commit 3063ea6ca9
3 changed files with 22 additions and 7 deletions

View File

@@ -501,9 +501,14 @@ bool wxGLCanvas::Create(wxWindow *parent,
// Make a copy of attributes. Will use at wxGLContext ctor
m_GLAttrs = dispAttrs;
#if wxOSX_USE_IPHONE
if ( !wxGLCanvas::DoCreate(parent,id,pos,size,style,name) )
return false;
#else
if ( !wxWindow::Create(parent, id, pos, size, style, name) )
return false;
#endif
return true;
}