fixed memory leak in ogl::Texture2D
Merge pull request #1825 from jet47:fix-opengl-mem-leak