[iOS]loadView of EAGL2ViewController is unneccesary

Discussion of issues specific to mobile platforms such as iOS, Android, Symbian and Meego.
Post Reply
SAM_tak
Gnoblar
Posts: 17
Joined: Wed May 25, 2011 5:17 pm

[iOS]loadView of EAGL2ViewController is unneccesary

Post by SAM_tak »

Hi, All.

I found a minor issue on OGRE for iOS, I want to share this information.

In case of UIViewController has overrided loadView, Operation system recognize the view owned by this controller is safe unloadble.
Therefore sometimes OGRE's 3D view will be blank after didReceiveMemoryWarning occurs in disappearing by pushViewController, etc.

To workaround this, just delete loadView implementation from EAGL2ViewController.

If loadView must be implemented, loadView must be possible to set EAGL2View up completely. If it cannot, it's better that loadView is not implemented.
User avatar
masterfalcon
OGRE Team Member
OGRE Team Member
Posts: 4270
Joined: Sun Feb 25, 2007 4:56 am
Location: Bloomington, MN
x 126
Contact:

Re: [iOS]loadView of EAGL2ViewController is unneccesary

Post by masterfalcon »

Would you be able to submit a patch for this so it doesn't get lost on the forums?
SAM_tak
Gnoblar
Posts: 17
Joined: Wed May 25, 2011 5:17 pm

Re: [iOS]loadView of EAGL2ViewController is unneccesary

Post by SAM_tak »

I submitted.
https://sourceforge.net/tracker/?func=d ... tid=302997

Sorry, I should have posten this topic on papercuts forum.
Post Reply