Fixed texture freeing. Destructor was never called because base destructors weren't virtual.

This commit is contained in:
2016-03-12 17:45:43 +01:00
parent 068e151741
commit ce0d3b9fbe
7 changed files with 16 additions and 13 deletions
-2
View File
@@ -14,8 +14,6 @@ protected:
TextureSprite(std::string path);
public:
~TextureSprite();
void Bind(GLenum textureUnit = GL_TEXTURE0);
GLuint m_Texture = 0;