Skip to content
Snippets Groups Projects
Commit cbf46e50 authored by Julien Michel's avatar Julien Michel
Browse files

BUG: Fixing bug 475. Memory leak due to gl texture not freed when GL_ACCEL is ON

parent 74db8d6b
No related branches found
No related tags found
No related merge requests found
......@@ -236,6 +236,7 @@ ImageWidget<TInputImage>
glTexCoord2f (0.0, 0.0);
glVertex3f (m_Extent.GetIndex()[0], m_Extent.GetIndex()[1] + m_Extent.GetSize()[1], 0.0);
glEnd ();
glDeleteTextures(1,&texture);
glDisable(GL_TEXTURE_2D);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment