From f45a0adb84b07503f6f7cdd433a353dca8aea84e Mon Sep 17 00:00:00 2001 From: Hector Martin Date: Thu, 24 Nov 2016 01:47:04 +0900 Subject: [PATCH] Fix banner rendering I guess we've been doing the clamping wrong all along and it just happened to work in the past? --- pywii/Alameda/Alameda.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pywii/Alameda/Alameda.py b/pywii/Alameda/Alameda.py index ff9fb5d..0aec325 100644 --- a/pywii/Alameda/Alameda.py +++ b/pywii/Alameda/Alameda.py @@ -1577,21 +1577,21 @@ class Renderer(object): glEnable(texture.target) glBindTexture(texture.target, texture.id) if mat.Textures[0][1] == 0x0: - glTexParameteri(texture.target, GL_TEXTURE_WRAP_S, GL_CLAMP) + glTexParameteri(texture.target, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE) elif mat.Textures[0][1] == 0x1: glTexParameteri(texture.target, GL_TEXTURE_WRAP_S, GL_REPEAT) elif mat.Textures[0][1] == 0x2: glTexParameteri(texture.target, GL_TEXTURE_WRAP_S, GL_MIRRORED_REPEAT) else: - glTexParameteri(texture.target, GL_TEXTURE_WRAP_S, GL_CLAMP) + glTexParameteri(texture.target, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE) if mat.Textures[0][2] == 0x0: - glTexParameteri(texture.target, GL_TEXTURE_WRAP_T, GL_CLAMP) + glTexParameteri(texture.target, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE) elif mat.Textures[0][2] == 0x1: glTexParameteri(texture.target, GL_TEXTURE_WRAP_T, GL_REPEAT) elif mat.Textures[0][2] == 0x2: glTexParameteri(texture.target, GL_TEXTURE_WRAP_T, GL_MIRRORED_REPEAT) else: - glTexParameteri(texture.target, GL_TEXTURE_WRAP_T, GL_CLAMP) + glTexParameteri(texture.target, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE) glPushClientAttrib(GL_CLIENT_VERTEX_ARRAY_BIT) glInterleavedArrays(GL_T4F_V4F, 0, array)