summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ui/icon.cpp1
-rw-r--r--ui/text.cpp1
2 files changed, 2 insertions, 0 deletions
diff --git a/ui/icon.cpp b/ui/icon.cpp
index 657e953..1caba68 100644
--- a/ui/icon.cpp
+++ b/ui/icon.cpp
@@ -25,5 +25,6 @@ Icon::Icon(const Image & tex) : size {tex.width, tex.height}
void
Icon::Bind() const
{
+ glActiveTexture(GL_TEXTURE0);
glBindTexture(GL_TEXTURE_2D, m_texture);
}
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);