I currently have an app that, on one view controller, has a subview which in turn has an openGL eagl layer that I render video to. My problem is that presently, whenever this view loads in or unloads (whether because you open a view in a deeper layer or close that view to open a different view), the layer turns green.
I have already set the actual UIView's background to be grey. I've also tried changing the glClearColor(0.5f, 0.5f, 0.5f, 1.0f) and a few other variations (setting the alpha channel to 0, setting the clear color to all red, setting the eaglLayer.opaque to NO, etc). None of my changes seem to make any difference and I always get the flash of green when the view appears/disappears. I've also tried calling a function which sets the eaglLayer.opaque = NO and calls glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT) on viewWillDisappear. This also seems to have no affect.
I'm not sure what else I can do that would help with the situation and I have no idea why I'm getting the green frame(s). If anyone has any ideas, it'd be greatly appreciated.