Saturday 14 September 2013

OpenGL ES showing contents of previous frame when switching from UIView to EAGLView

OpenGL ES showing contents of previous frame when switching from UIView to
EAGLView

My game has two views: a UIKit menu screen and the EAGLView. No matter
what I try -- inserting glClear() willy-nilly -- whenever the EAGLView
comes back into view it flashes the contents of the previous frame for
just a split second.
I'm really at a loss. It seems like all I should have to do is call
glClear() before every frame, which I'm doing. Does it have something to
do with switching contexts between my UIView menu and my EAGLView game?
It's only the first frame that flashes the contents of whatever was last
displayed. I'm using OpenGLES1.1 by the way.
-Nick

No comments:

Post a Comment