From 22e3e10ca41e179aeef06f22aca46905e31148f2 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 30 Oct 2022 18:00:27 +0000 Subject: Setting texture unit when binding UI components --- ui/text.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'ui/text.cpp') diff --git a/ui/text.cpp b/ui/text.cpp index 0c372a1..872e3f3 100644 --- a/ui/text.cpp +++ b/ui/text.cpp @@ -44,6 +44,7 @@ void Text::render(const UIShader & shader, const Position &) const { shader.useText(colour); + glActiveTexture(GL_TEXTURE0); for (const auto & m : models) { glBindTexture(GL_TEXTURE_2D, m.texture); glBindVertexArray(m.vao); -- cgit v1.2.3