diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2022-11-10 11:38:04 +0100 |
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-11-10 11:38:04 +0100 |
| commit | 86c1bc8b9b5d8ad5fbfef85f34658c1da73baa1f (patch) | |
| tree | 52a3fcdc8388f8b86bd444bca2dd0bea232ca77a /editor | |
| parent | 3fddffee5f08e97d6b9509196d9800888b098bcf (diff) | |
run draw first, then update
Diffstat (limited to 'editor')
| -rw-r--r-- | editor/draw.cpp | 2 | ||||
| -rw-r--r-- | editor/update.cpp | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/editor/draw.cpp b/editor/draw.cpp index ad634815..72919794 100644 --- a/editor/draw.cpp +++ b/editor/draw.cpp @@ -2,7 +2,6 @@ #include "floormat/main.hpp" #include "floormat/settings.hpp" #include "shaders/tile.hpp" -#include <Magnum/GL/DebugOutput.h> #include <Magnum/Math/Vector3.h> namespace floormat { @@ -41,6 +40,7 @@ void app::draw_msaa() void app::draw() { + draw_ui(); render_menu(); } diff --git a/editor/update.cpp b/editor/update.cpp index 53915908..506022d5 100644 --- a/editor/update.cpp +++ b/editor/update.cpp @@ -100,7 +100,6 @@ void app::apply_commands(const key_set& keys) void app::update(float dt) { - draw_ui(); apply_commands(keys); do_camera(dt, keys, get_key_modifiers()); clear_non_repeated_keys(); |
