question about share shape?

titanhope

19-11-2009 06:57:21

i'm create a Shape box and share it.

NxOgre::Shape* pShape = new NxOgre::Box(10);

NxOgre::SceneGeometry* pTestGeo1 = mScene->createSceneGeometry(pShape , NxOgre::Vec3(117,3,59));
NxOgre::SceneGeometry* pTestGeo2 = mScene->createSceneGeometry(pShape , NxOgre::Vec3(117,3,69));

delete pTestGeo1;//ok
delete pTestGeo2;//err

how about share shape?