default app_launcher destructor

This commit is contained in:
Patrick Nicolas
2026-03-02 10:15:52 +01:00
parent 822f28ab23
commit ce3e54b2d0
4 changed files with 6 additions and 9 deletions
+5
View File
@@ -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;
+1
View File
@@ -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 = "");
-8
View File
@@ -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;
-1
View File
@@ -50,7 +50,6 @@ class app_launcher
public:
app_launcher(scenes::stream &, std::string server_name);
~app_launcher();
enum clicked
{
None,