- [EAGL2View setEnableSetNeedsDisplay:]: unrecognized selector sent to instance 0x1e08f6f0
The crash happens when the ogre view is hidden by another view with a [controller presentModalViewController: mediaUI animated: YES];, or when the app is minimized.
I don't know why it would work with iOS 5.1 at all. setEnableSetNeedsDisplay is a method of the GLKView class. EAGL2View is a subclass of UIView which does not have that method, which will result in the unrecognized selector crash.
masterfalcon wrote:I don't know why it would work with iOS 5.1 at all. setEnableSetNeedsDisplay is a method of the GLKView class. EAGL2View is a subclass of UIView which does not have that method, which will result in the unrecognized selector crash.
Uhms, you are right, in iOS 5.1 we use OpenGL ES 1, and with the update to iOS 6 we've update to ES 2. The question is why is crashing, because we don't call this funcion in any place . Maybe this function is called internally by ogre?
Ok, i think its solved. Following your advices i've checked line by line the sources looking for GLK related code and I've found old legacy snippets from OpenGL ES 1 in the view controllers.