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/icon.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'ui/icon.cpp') 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); } -- cgit v1.2.3