Disposes this object and its resources using given OpenGL adapter.
if this object has already been disposed.