diff --git a/scene_opengl.cpp b/scene_opengl.cpp index aa31b1bd31..2220bb7203 100644 --- a/scene_opengl.cpp +++ b/scene_opengl.cpp @@ -854,6 +854,7 @@ SceneOpenGL::Texture::Texture( const Pixmap& pix, const QSize& size, int depth ) SceneOpenGL::Texture::~Texture() { + discard(); } void SceneOpenGL::Texture::init()