1

I am making a simple drawing app - I have modified the apple GLPaint example somewhat. The problem is when the user rotates the device, the drawings are cleared. is there a way around this?

I'm also having trouble saving an image representation, if you know about this take a look: Saving imageRef from GLPaint creates completely black image

Community
  • 1
  • 1
Brodie
  • 3,526
  • 8
  • 42
  • 61

1 Answers1

0

I determined that this was due to layoutSubviews being called which was destroying then creating the frameBuffer. I created a bool that tracked if the frame buffer had been created once and then only destroyed/created the first time. the view was loaded.

Brodie
  • 3,526
  • 8
  • 42
  • 61