]> git.jsancho.org Git - lugaru.git/blobdiff - Source/Graphic/Models.cpp
Cleaned up TextureRes lifecycle to make sure it’s destroyed by RAII
[lugaru.git] / Source / Graphic / Models.cpp
index 38e2447085c528abba18ce2dfe35c2d77332f4bc..1e5947277b70d4fb2ed0a0ca3794d0191bafbd1e 100644 (file)
@@ -1358,7 +1358,6 @@ void Model::MakeDecal(int atype, XYZ where, float size, float opacity, float rot
 Model::~Model()
 {
     deallocate();
-    textureptr.destroy();
 }
 
 void Model::deallocate()