[UI] Fix leaked locked_achievement_icon_ texture on drawer teardown

Reset locked_achievement_icon_ alongside font_texture_ and
notification_icon_textures_ when the immediate drawer is cleared,
preventing a debug assertion in D3D12ImmediateDrawer's destructor.
This commit is contained in:
Herman S.
2026-01-29 15:27:51 +09:00
parent 7887efa69f
commit c261027225

View File

@@ -564,7 +564,7 @@ void ImGuiDrawer::SetImmediateDrawer(ImmediateDrawer* new_immediate_drawer) {
if (immediate_drawer_) {
GetIO().Fonts->TexID = reinterpret_cast<ImTextureID>(nullptr);
font_texture_.reset();
locked_achievement_icon_.reset();
notification_icon_textures_.clear();
}
immediate_drawer_ = new_immediate_drawer;