From 9dff907f155d6cc8a6e6a36d9dc5b27def407f00 Mon Sep 17 00:00:00 2001 From: Sergey Lipskiy Date: Tue, 12 Nov 2019 10:51:25 +0700 Subject: [PATCH] Do not shift texture coordinates for frame buffer textures. Fixed #2112 Conker black line following your shadow --- .../OpenGLContext/GLSL/glsl_CombinerProgramBuilder.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Graphics/OpenGLContext/GLSL/glsl_CombinerProgramBuilder.cpp b/src/Graphics/OpenGLContext/GLSL/glsl_CombinerProgramBuilder.cpp index b6763d99..b9002c64 100644 --- a/src/Graphics/OpenGLContext/GLSL/glsl_CombinerProgramBuilder.cpp +++ b/src/Graphics/OpenGLContext/GLSL/glsl_CombinerProgramBuilder.cpp @@ -280,8 +280,9 @@ public: " vec2 texCoordOut = texCoord*uCacheShiftScale[idx]; \n" " texCoordOut -= uTexOffset[idx]; \n" " texCoordOut += uCacheOffset[idx]; \n" - " if (uTextureFilterMode != 0) texCoordOut += vec2(0.5); \n" - " return texCoordOut* uCacheScale[idx]; \n" + " if (uTextureFilterMode != 0 && uCacheFrameBuffer[idx] == 0)\n" + " texCoordOut += vec2(0.5); \n" + " return texCoordOut* uCacheScale[idx]; \n" "} \n" " \n" "void main() \n"