Cocos2dx ios integrate Airplay SecondaryScreen problem


I have github project at
I integerate ios Developer center GLAirplay Sample code with Cocos2dx.
MainScreen is cocos2dx Scene,SecondaryScren is OpenGL rendering a Box. It’s working

I switch type is GLVIEW_RENDER_COCOS2DX_SCENE in GLView initWithFrame function,
The secondary become cocos2dx Scene implementation
but SecondaryScreen always have 0x502 OpenGL error(Invalid operation).

I am not familar with OpenGL implementation,so share my uncompleted project
to expect somebody help me to fix the bug.