Function GlInstance.dispose

Dispose the underlying resource

override void dispose();