Fixing Creation of wxGLCanvas on iOS
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user