• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
[iPhone opengl] drawing issues when switching views
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[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


  • Prev by Date: -NSMutableIndexSet shiftIndexesStartingAtIndex:by: weirdness
  • Next by Date: Re: #pragma to suppress a warning message
  • Previous by thread: Re: -NSMutableIndexSet shiftIndexesStartingAtIndex:by: weirdness
  • Next by thread: NSRunLoop issue
  • Index(es):
    • Date
    • Thread