We don't need to push the default font

pull/1/head
FlightlessMango 4 years ago
parent af99e711b5
commit e3008126f3

@ -1062,7 +1062,6 @@ static void compute_swapchain_display(struct swapchain_data *data)
ImGui::SetCurrentContext(data->imgui_context); ImGui::SetCurrentContext(data->imgui_context);
ImGui::NewFrame(); ImGui::NewFrame();
position_layer(data); position_layer(data);
ImGui::PushFont(font);
if (instance_data->params.font_size > 0 && instance_data->params.width == 280) if (instance_data->params.font_size > 0 && instance_data->params.width == 280)
instance_data->params.width = hudFirstRow + hudSecondRow; instance_data->params.width = hudFirstRow + hudSecondRow;
@ -1224,7 +1223,6 @@ static void compute_swapchain_display(struct swapchain_data *data)
ImGui::End(); ImGui::End();
} }
ImGui::PopStyleVar(2); ImGui::PopStyleVar(2);
ImGui::PopFont();
ImGui::EndFrame(); ImGui::EndFrame();
ImGui::Render(); ImGui::Render();

Loading…
Cancel
Save