ImFontAtlas: move implicit AddFontDefault call to Build() function + remove unnecessary asserts in backend.

This commit is contained in:
ocornut
2021-06-24 17:34:23 +02:00
parent 2ab7f96f21
commit 95db098477
7 changed files with 7 additions and 12 deletions

View File

@ -267,7 +267,6 @@ static void ImGui_ImplWin32_UpdateGamepads()
void ImGui_ImplWin32_NewFrame()
{
ImGuiIO& io = ImGui::GetIO();
IM_ASSERT(io.Fonts->IsBuilt() && "Font atlas not built! It is generally built by the renderer backend. Missing call to renderer _NewFrame() function? e.g. ImGui_ImplOpenGL3_NewFrame().");
// Setup display size (every frame to accommodate for window resizing)
RECT rect = { 0, 0, 0, 0 };