From c3eea71370eb94cff1fd96185458643fab6eb2c5 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Thu, 3 Nov 2022 19:47:46 +0000 Subject: Restructure how shaders are worked with Needs a tidy-up --- ui/text.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ui/text.cpp') diff --git a/ui/text.cpp b/ui/text.cpp index 872e3f3..d24c268 100644 --- a/ui/text.cpp +++ b/ui/text.cpp @@ -43,7 +43,7 @@ Text::Text(std::string_view s, Position pos, glm::vec3 c) : UIComponent {pos}, c void Text::render(const UIShader & shader, const Position &) const { - shader.useText(colour); + shader.text.use(colour); glActiveTexture(GL_TEXTURE0); for (const auto & m : models) { glBindTexture(GL_TEXTURE_2D, m.texture); -- cgit v1.2.3