]> git.jsancho.org Git - lugaru.git/blobdiff - Source/Environment/Skybox.cpp
Cleaned up TextureRes lifecycle to make sure it’s destroyed by RAII
[lugaru.git] / Source / Environment / Skybox.cpp
index ce58adf8d56d18ccadbb1a2dde3d89587f2cc7b5..5ace90a08fac8d03210b9027324e878c3fb75eae 100644 (file)
@@ -18,8 +18,9 @@ You should have received a copy of the GNU General Public License
 along with Lugaru.  If not, see <http://www.gnu.org/licenses/>.
 */
 
-#include "Environment/Skybox.h"
-#include "Game.h"
+#include "Environment/Skybox.hpp"
+
+#include "Game.hpp"
 
 extern float viewdistance;
 extern float blurness;
@@ -157,14 +158,3 @@ void SkyBox::draw()
     glDepthMask(1);
     glPopMatrix();
 }
-
-SkyBox::~SkyBox()
-{
-    front.destroy();
-    left.destroy();
-    back.destroy();
-    right.destroy();
-    up.destroy();
-    down.destroy();
-};
-