Delete GL objects during DisplayLoop

This avoid segfaults due to calling OpenGL functions (e.g. glReleaseTexture)
outside of DisplayLoop