before refactor

This commit is contained in:
Ben Wallis 2020-07-26 10:28:10 +01:00
parent 452ac18dc0
commit 6ad427ee95
3 changed files with 1 additions and 8 deletions

View File

@ -3,9 +3,6 @@
#![feature(bool_to_option)]
#![recursion_limit = "2048"]
#[macro_use]
extern crate imgui;
use veloren_voxygen::{
audio::{self, AudioFrontend},
i18n::{self, i18n_asset_key, VoxygenLocalization},

View File

@ -18,10 +18,9 @@ use gfx::{
use glsl_include::Context as IncludeContext;
use tracing::error;
use vek::*;
use imgui::{DrawData, Context, im_str, Window, Condition, ConfigFlags};
use imgui::{Context, im_str, Window, Condition, ConfigFlags};
use imgui_winit_support::WinitPlatform;
use winit::event::Event;
use imgui::sys::ImGuiConfigFlags_NoMouseCursorChange;
/// Represents the format of the pre-processed color target.
pub type TgtColorFmt = gfx::format::Srgba8;

View File

@ -141,10 +141,7 @@ fn handle_main_events_cleared(
if let Some(last) = states.last_mut() {
global_state.window.renderer_mut().clear();
// Render the game
last.render(global_state.window.renderer_mut(), &global_state.settings);
// Render imgui on top
global_state.window.render_imgui();
global_state.window.renderer_mut().flush();