From: Daniel Karbach Date: Mon, 20 Nov 2017 21:39:57 +0000 (+0100) Subject: old glm X-Git-Url: https://git.localhorst.tv/?a=commitdiff_plain;h=ab817024b3c02a54a376fa8f60b5046e51128ebb;p=blobs.git old glm *sigh* --- diff --git a/src/ui/widgets.cpp b/src/ui/widgets.cpp index ffaeab8..fb2ef74 100644 --- a/src/ui/widgets.cpp +++ b/src/ui/widgets.cpp @@ -108,10 +108,10 @@ void Meter::Draw(app::Assets &assets, graphics::Viewport &viewport) noexcept { if (value > 0.0f) { glm::vec3 top_left(glm::vec2(TopLeft()) + padding + glm::vec2(border), Position().z); - glm::vec3 actual_size(size.x * value, size.y, 1.0f); + glm::vec2 actual_size(size.x * value, size.y); assets.shaders.plain_color.SetM(glm::translate(align(Gravity::NORTH_WEST, actual_size, top_left)) - * glm::scale(actual_size)); + * glm::scale(glm::vec3(actual_size, 1.0f))); assets.shaders.plain_color.SetColor(fill_color); assets.shaders.plain_color.DrawRect(); }