summaryrefslogtreecommitdiff
path: root/ui/icon.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ui/icon.cpp')
-rw-r--r--ui/icon.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/icon.cpp b/ui/icon.cpp
index 0bdc91a..0422804 100644
--- a/ui/icon.cpp
+++ b/ui/icon.cpp
@@ -11,7 +11,7 @@ Icon::Icon(const std::filesystem::path & fileName) : Icon {Image {Resource::mapP
Icon::Icon(const Image & tex) : size {tex.width, tex.height}
{
- glBindTexture(GL_TEXTURE_2D, m_texture);
+ m_texture.bind();
glTexParameter(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_BORDER);
glTexParameter(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_BORDER);