summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2023-01-12 19:32:50 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2023-01-12 19:32:50 +0000
commit1a3e85753e9dd188fc1c6539f8e8a695597c4c55 (patch)
tree899f400bc172a0ed23ecb7dc87b992d1c2594ad1
parentSupport creating test render output framebuffers of different sizes (diff)
downloadilt-1a3e85753e9dd188fc1c6539f8e8a695597c4c55.tar.bz2
ilt-1a3e85753e9dd188fc1c6539f8e8a695597c4c55.tar.xz
ilt-1a3e85753e9dd188fc1c6539f8e8a695597c4c55.zip
Fix wrap/clamp settings on icon textures
-rw-r--r--ui/icon.cpp4
1 files 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);