summaryrefslogblamecommitdiff
path: root/old/termgfx.cc
blob: 2897b13dc86c3f84efe9611632025cf3c61ef296 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13












                                                                      
# include <luma/main.hh>
# include <vulkan/vulkan.h>
# include <wayland-client.h>
# include <xcb/xcb.h>
void luma::app_t::termgfx() {
	::vkDestroyInstance(this->vkinst,nullptr);
	if(this->dispsrvproto == this->dispsrvproto_t::x) {
		::xcb_disconnect(this->xconn);
	}
	else if(this->dispsrvproto == this->dispsrvproto_t::wayland) {
		::wl_display_disconnect(this->wldisp);
	}
}