default app_launcher destructor
This commit is contained in:
@@ -209,6 +209,11 @@ imgui_textures::imgui_textures(
|
||||
this->image_cache = std::make_shared<image_cache_type>(device, physical_device, queue, queue_family_index);
|
||||
}
|
||||
|
||||
imgui_textures::~imgui_textures()
|
||||
{
|
||||
device.waitIdle();
|
||||
}
|
||||
|
||||
std::vector<std::pair<ImVec2, float>> imgui_context::ray_plane_intersection(const imgui_context::controller_state & in) const
|
||||
{
|
||||
std::vector<std::pair<ImVec2, float>> intersections;
|
||||
|
||||
@@ -68,6 +68,7 @@ public:
|
||||
uint32_t queue_family_index,
|
||||
thread_safe<vk::raii::Queue> & queue,
|
||||
std::shared_ptr<image_cache_type> image_cache = {});
|
||||
~imgui_textures();
|
||||
ImTextureID load_texture(const std::string & filename, vk::raii::Sampler && sampler);
|
||||
ImTextureID load_texture(const std::string & filename);
|
||||
ImTextureID load_texture(const std::span<const std::byte> & bytes, vk::raii::Sampler && sampler, const std::string & name = "");
|
||||
|
||||
@@ -103,14 +103,6 @@ app_launcher::app_launcher(
|
||||
default_icon = textures.load_texture("assets://default_icon.ktx2");
|
||||
}
|
||||
|
||||
app_launcher::~app_launcher()
|
||||
{
|
||||
stream.device.waitIdle();
|
||||
for (const auto & [app_id, app_icon]: app_icons)
|
||||
textures.free_texture(app_icon);
|
||||
textures.free_texture(default_icon);
|
||||
}
|
||||
|
||||
app_launcher::clicked app_launcher::draw_gui(imgui_context & imgui_ctx, const std::string & cancel)
|
||||
{
|
||||
auto res = clicked::None;
|
||||
|
||||
@@ -50,7 +50,6 @@ class app_launcher
|
||||
|
||||
public:
|
||||
app_launcher(scenes::stream &, std::string server_name);
|
||||
~app_launcher();
|
||||
enum clicked
|
||||
{
|
||||
None,
|
||||
|
||||
Reference in New Issue
Block a user