Use overlay_new/end_frame with mangoapp

pull/771/head
jackun 2 years ago
parent 1447778fd4
commit 3e6b35560c
No known key found for this signature in database
GPG Key ID: 119DB3F1D05A9ED3

@ -221,10 +221,11 @@ static bool render(GLFWwindow* window) {
ImGui_ImplGlfw_NewFrame();
ImGui_ImplOpenGL3_NewFrame();
ImGui::NewFrame();
overlay_new_frame(*params);
position_layer(sw_stats, *params, window_size);
render_imgui(sw_stats, *params, window_size, true);
overlay_end_frame();
glfwSetWindowSize(window, window_size.x + 45.f, window_size.y + 325.f);
ImGui::PopStyleVar(3);
ImGui::EndFrame();
return last_window_size.x != window_size.x || last_window_size.y != window_size.y;
}

Loading…
Cancel
Save