1) OpenGL error solved -- just comment the debugger method change CHECK_GL_ERROR_DEBUG to //CHECK_GL_ERROR_DEBUG