From 1a3e85753e9dd188fc1c6539f8e8a695597c4c55 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Thu, 12 Jan 2023 19:32:50 +0000 Subject: Fix wrap/clamp settings on icon textures --- ui/icon.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/icon.cpp b/ui/icon.cpp index 1caba68..ee88317 100644 --- a/ui/icon.cpp +++ b/ui/icon.cpp @@ -13,8 +13,8 @@ Icon::Icon(const Image & tex) : size {tex.width, tex.height} { glBindTexture(GL_TEXTURE_2D, m_texture); - glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP); - glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP); + glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_BORDER); + glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_BORDER); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR); -- cgit v1.2.3