From 4db08e15e8bdd0286195f48a28d4c8108ea64c6a Mon Sep 17 00:00:00 2001 From: aap Date: Sun, 26 Apr 2020 23:51:27 +0200 Subject: [PATCH] fixed tex addressing bug --- src/gl/gl3device.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gl/gl3device.cpp b/src/gl/gl3device.cpp index 0521e62..be03612 100644 --- a/src/gl/gl3device.cpp +++ b/src/gl/gl3device.cpp @@ -256,7 +256,7 @@ static GLint filterConvMap_NoMIP[] = { static GLint addressConvMap[] = { 0, GL_REPEAT, GL_MIRRORED_REPEAT, - GL_CLAMP, GL_CLAMP_TO_BORDER + GL_CLAMP_TO_EDGE, GL_CLAMP_TO_BORDER }; static void @@ -372,7 +372,7 @@ setRasterStage(uint32 stage, Raster *raster) glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, addressConvMap[addrU]); natras->addressU = addrU; } - if(natras->addressU != addrV){ + if(natras->addressV != addrV){ glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, addressConvMap[addrV]); natras->addressV = addrV; }