diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2022-10-30 18:00:27 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2022-10-30 18:00:27 +0000 |
commit | 22e3e10ca41e179aeef06f22aca46905e31148f2 (patch) | |
tree | 7a3e8bc5f03871355cee541e44fa260c63e0ac65 /ui/text.cpp | |
parent | Add frame and render buffers to glArrays (diff) | |
download | ilt-22e3e10ca41e179aeef06f22aca46905e31148f2.tar.bz2 ilt-22e3e10ca41e179aeef06f22aca46905e31148f2.tar.xz ilt-22e3e10ca41e179aeef06f22aca46905e31148f2.zip |
Setting texture unit when binding UI components
Diffstat (limited to 'ui/text.cpp')
-rw-r--r-- | ui/text.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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); |