summaryrefslogtreecommitdiff
path: root/termgfx.cc
blob: 240c1b79796da6671aded1b31b180842d7286e2f (plain) (blame)
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::termgfx() {
	::vkDestroyInstance(luma::dat.vkinst,nullptr);
	if(luma::dat.dispsrvproto == luma::dispsrvproto_t::x) {
		::xcb_disconnect(luma::dat.xconn);
	}
	else if(luma::dat.dispsrvproto == luma::dispsrvproto_t::wayland) {
		::wl_display_disconnect(luma::dat.wldisp);
	}
}