From d953b707c8cd5e42088245abb6527be211eee9cb Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Mon, 17 Oct 2022 17:07:04 +0200 Subject: a --- main/gui.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'main/gui.cpp') diff --git a/main/gui.cpp b/main/gui.cpp index e665c27b..22bb95fd 100644 --- a/main/gui.cpp +++ b/main/gui.cpp @@ -9,20 +9,17 @@ namespace floormat { using namespace floormat::imgui; -void app::setup_menu() +void app::display_menu() { GL::Renderer::setBlendEquation(GL::Renderer::BlendEquation::Add, GL::Renderer::BlendEquation::Add); GL::Renderer::setBlendFunction(GL::Renderer::BlendFunction::SourceAlpha, GL::Renderer::BlendFunction::OneMinusSourceAlpha); -} - -void app::display_menu() -{ GL::Renderer::enable(GL::Renderer::Feature::Blending); + GL::Renderer::enable(GL::Renderer::Feature::ScissorTest); GL::Renderer::disable(GL::Renderer::Feature::FaceCulling); GL::Renderer::disable(GL::Renderer::Feature::DepthTest); + _imgui.drawFrame(); - GL::Renderer::enable(GL::Renderer::Feature::ScissorTest); } void app::do_menu() -- cgit v1.2.3