From 8fff6ee1aa3ea9b0ed5c3d656e53856fc3fdc244 Mon Sep 17 00:00:00 2001 From: Luke Benstead Date: Fri, 9 Dec 2022 20:17:46 +0000 Subject: [PATCH] Treat GL_CLAMP_TO_EDGE the same as GL_CLAMP --- GL/texture.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/GL/texture.c b/GL/texture.c index 2adaf94..cd4ce97 100644 --- a/GL/texture.c +++ b/GL/texture.c @@ -1593,6 +1593,7 @@ void APIENTRY glTexParameteri(GLenum target, GLenum pname, GLint param) { break; case GL_TEXTURE_WRAP_S: switch(param) { + case GL_CLAMP_TO_EDGE: case GL_CLAMP: active->uv_clamp |= CLAMP_U; break; @@ -1606,6 +1607,7 @@ void APIENTRY glTexParameteri(GLenum target, GLenum pname, GLint param) { case GL_TEXTURE_WRAP_T: switch(param) { + case GL_CLAMP_TO_EDGE: case GL_CLAMP: active->uv_clamp |= CLAMP_V; break;