]> git.jsancho.org Git - lugaru.git/blobdiff - Source/Environment/Terrain.cpp
Cleaned up TextureRes lifecycle to make sure it’s destroyed by RAII
[lugaru.git] / Source / Environment / Terrain.cpp
index 77ae539fb4af977cfc335c76630e63dea60df39e..806bb4be7541b30f4f5b0cda08011ac5451db80d 100644 (file)
@@ -1515,14 +1515,3 @@ Terrain::Terrain()
     memset(decalposition, 0, sizeof(decalposition));
     numdecals = 0;
 }
-Terrain::~Terrain()
-{
-    terraintexture.destroy();
-    shadowtexture.destroy();
-    bodyprinttexture.destroy();
-    footprinttexture.destroy();
-    bloodtexture.destroy();
-    bloodtexture2.destroy();
-    breaktexture.destroy();
-}
-