Skip to content

Commit be8f38b

Browse files
committed
ImGuiManager: Transition texture layout after font update
1 parent add30da commit be8f38b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/util/imgui_manager.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -576,6 +576,7 @@ void ImGuiManager::UpdateTextures()
576576
continue;
577577
}
578578

579+
gtex->MakeReadyForSampling();
579580
tex->SetTexID(reinterpret_cast<ImTextureID>(gtex.release()));
580581
tex->Status = ImTextureStatus_OK;
581582
}
@@ -595,6 +596,8 @@ void ImGuiManager::UpdateTextures()
595596
}
596597
}
597598

599+
gtex->MakeReadyForSampling();
600+
598601
// Updates is cleared by ImGui NewFrame.
599602
tex->Status = ImTextureStatus_OK;
600603
}

0 commit comments

Comments
 (0)