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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to