- properly cleanup models in g3dviewer to fix shutdown bug

This commit is contained in:
SoftCoder
2014-12-23 20:39:03 -08:00
parent 7f0b199929
commit b1455c0e33
4 changed files with 22 additions and 11 deletions

View File

@@ -200,6 +200,10 @@ Model * Renderer::newModel(ResourceScope rs,const string &path,bool deletePixMap
return modelManager->newModel(path,deletePixMapAfterLoad,loadedFileList,sourceLoader);
}
void Renderer::endModel(ResourceScope rs,Model *model) {
modelManager->endModel(model);
}
void Renderer::init() {
assertGl();