- 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

@@ -147,6 +147,7 @@ public:
Texture2D * getNewTexture2D();
Model *newModel(ResourceScope rs,const string &path,bool deletePixMapAfterLoad=false,std::map<string,vector<pair<string, string> > > *loadedFileList=NULL, string *sourceLoader=NULL);
void endModel(ResourceScope rs,Model *model);
Texture2D *newTexture2D(ResourceScope rs) { return getNewTexture2D(); }
void initTextureManager();