From d073592943d1ed4bf0776badb0f92d4c7fe96948 Mon Sep 17 00:00:00 2001 From: jnmartin84 Date: Wed, 16 Jul 2025 16:49:30 -0400 Subject: [PATCH] sorry, I was wrong about the clamp state for MIRRORED_REPEAT --- GL/texture.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/GL/texture.c b/GL/texture.c index dad65e6..ec90bae 100644 --- a/GL/texture.c +++ b/GL/texture.c @@ -1905,8 +1905,7 @@ void APIENTRY glTexParameteri(GLenum target, GLenum pname, GLint param) { break; case GL_MIRRORED_REPEAT: - active->uv_wrap &= ~CLAMP_U; - active->uv_wrap |= MIRROR_U; + active->uv_wrap |= (CLAMP_U & MIRROR_U); break; } @@ -1924,8 +1923,7 @@ void APIENTRY glTexParameteri(GLenum target, GLenum pname, GLint param) { break; case GL_MIRRORED_REPEAT: - active->uv_wrap &= ~CLAMP_V; - active->uv_wrap |= MIRROR_V; + active->uv_wrap |= (CLAMP_V & MIRROR_V); break; }