summaryrefslogblamecommitdiff
path: root/termgfx.cc
blob: 240c1b79796da6671aded1b31b180842d7286e2f (plain) (tree)
1
2
3
4
5
6
7
8
9





                                                      
                                                               

                                                  
                                                                          


                                                          
# 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);
	}
}