Fix issue with memory leak inside GL - correctly handle textures