releasing opengl context on destroy