should not set m_sceneRef NULL
renamed resetInitialOpenGLStates to setRequiredOpenGLState
renamed resetAllRenderEngines to reset and change role
fixed a bug that cannot execute glMapBuffer correctly
added internalDeleteAllMotions to delete motions correctly