MapActivity是三维场景所在的Activity;MapActivity跳转到LoginActivity之后,再点击按钮进入MapActivity,iMobile for android 9.1.1包里面就会报错:
OGRE EXCEPTION(2:InvalidParametersException): NativeWindowType with name '00000000' already exists in GLES2RenderSystem::_createRenderWindow at E:\AR\OGRE1.9_ES3\RenderSystems\GLES2\src\OgreGLES2RenderSystem.cpp (line 526)
MapActivity和LoginActivity都是singleInstance,MapActivity跳转到LoginActivity代码:
startActivity(new Intent(MapActivity.this, LoginActivity.class));
sceneControl.getScene().close();
// sceneControl.getScene().close();
MapActivity.this.finish();
LoginActivity跳转到MapActivity代码:
Intent intent = new Intent(LoginActivity.this, MapActivity.class);
startActivity(intent);
LoginActivity.this.finish();
总是会报这个错,请问能不能提供解决方案,或者给予思路。