[iPhone opengl] drawing issues when switching views
[iPhone opengl] drawing issues when switching views
- Subject: [iPhone opengl] drawing issues when switching views
- From: Sven <email@hidden>
- Date: Thu, 17 Sep 2009 13:43:24 +0000 (UTC)
Apologies if this is not on the right list.
I have an app with several views, one of which is an OpenGLES view
implemented by subclassing OpenGLES2DView.
When I switch from a normal view to the OpenGL view it draws the textured
sprite as expected, but when I switch from the OpenGL view back to the
previous UIKit view, and then back to the OpenGL view the screen is blank,
and all I see is the clear colour. The sprite is not drawing. The
coordinates for the sprite are the same each time. I can't work out why it
draws the first time round and not when I switch back to it the second
time.
On switching the OpenGL view and controller are both deallocated.
The most relevant code is here http://pastie.org/620291.
TIA
./Sven
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden