- Update OsgGraph
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@5991 30fe4595-0a0c-4342-8851-515496e4dcbd Former-commit-id: 2925e4d8cd5dec343a686b5dc1b6cda90e941e9c Former-commit-id: 5a1b092a81de6bae575bb89835937420422f2046
This commit is contained in:
parent
94dc2a6348
commit
6dae0edbd1
1 changed files with 13 additions and 5 deletions
|
@ -39,11 +39,11 @@
|
||||||
//extern osg::Timer m_timer;
|
//extern osg::Timer m_timer;
|
||||||
//extern osg::Timer_t m_start_tick;
|
//extern osg::Timer_t m_start_tick;
|
||||||
|
|
||||||
SDOptions *Options = 0;
|
static SDOptions *Options = 0;
|
||||||
SDCars *cars = 0;
|
static SDCars *cars = 0;
|
||||||
SDScenery *scenery = 0;
|
static SDScenery *scenery = 0;
|
||||||
SDRender *render = 0;
|
static SDRender *render = 0;
|
||||||
SDScreens * screens = 0;
|
static SDScreens *screens = 0;
|
||||||
|
|
||||||
void *getOptions()
|
void *getOptions()
|
||||||
{
|
{
|
||||||
|
@ -288,6 +288,14 @@ void shutdownTrack(void)
|
||||||
GfParmReleaseHandle(grTrackHandle);
|
GfParmReleaseHandle(grTrackHandle);
|
||||||
grTrackHandle = 0;
|
grTrackHandle = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (scenery)
|
||||||
|
{
|
||||||
|
scenery->ShutdownScene();
|
||||||
|
delete scenery;
|
||||||
|
scenery = NULL;
|
||||||
|
GfLogInfo("Delete scenery in OsgMain\n");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void shutdownView(void)
|
void shutdownView(void)
|
||||||
|
|
Loading…
Reference in a new issue