medfall

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit aed9d05d33dcbdd406eafdd96f6481c45b9e38c9
parent b23578fa5dc6714d34c1058fc3c2ca6817960a74
Author: Michael Savage <mikejsavage@gmail.com>
Date:   Mon Aug 31 21:19:26 +0200

Bye bye destructor

Diffstat:
heightmap.cc | 4----
heightmap.h | 2--
2 files changed, 0 insertions(+), 6 deletions(-)
diff --git a/heightmap.cc b/heightmap.cc @@ -43,10 +43,6 @@ static glm::vec3 triangle_perp_ccw( const glm::vec3 & a, const glm::vec3 & b, co return glm::cross( b - a, c - a ); } -Heightmap::~Heightmap() { - unload(); -} - void Heightmap::load( const std::string & image, const int ox, const int oy, const GLint at_pos, const GLint at_normal, const GLint at_lit ) { pixels = stbi_load( image.c_str(), &w, &h, nullptr, 1 ); diff --git a/heightmap.h b/heightmap.h @@ -19,8 +19,6 @@ public: GLuint ebo; GLuint vao; - ~Heightmap(); - void load( const std::string & image, const int ox, const int oy, const GLint at_pos, const GLint at_normal, const GLint at_lit ); void unload();