restore update every frame

This commit is contained in:
2019-02-22 02:52:19 +01:00
parent cb2b1b5aa2
commit eab6e68534

View File

@@ -532,12 +532,13 @@ void App::update(float dt)
reload_timer = 0; reload_timer = 0;
ShaderManager::reload(); ShaderManager::reload();
layout.reload(); layout.reload();
if (auto* main = layout[main_id])
main->update(width, height, zoom);
stroke->update_controls(); stroke->update_controls();
} }
#endif #endif
if (auto* main = layout[main_id])
main->update(width, height, zoom);
{ {
static glm::vec4 color_button_normal{ .1, .1, .1, 1 }; static glm::vec4 color_button_normal{ .1, .1, .1, 1 };
static glm::vec4 color_button_hlight{ 1, .0, .0, 1 }; static glm::vec4 color_button_hlight{ 1, .0, .0, 1 };