From 39153304e17342ed64bb6f12a8220cbc47b6a098 Mon Sep 17 00:00:00 2001 From: s2s <12202580+standard-two-simplex@users.noreply.github.com> Date: Sat, 30 Jan 2021 16:30:22 +0100 Subject: [PATCH] Workaround for framebuffer textures --- .../OpenGLContext/GLSL/glsl_CombinerProgramBuilder.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Graphics/OpenGLContext/GLSL/glsl_CombinerProgramBuilder.cpp b/src/Graphics/OpenGLContext/GLSL/glsl_CombinerProgramBuilder.cpp index a0c73195..cd7bc611 100644 --- a/src/Graphics/OpenGLContext/GLSL/glsl_CombinerProgramBuilder.cpp +++ b/src/Graphics/OpenGLContext/GLSL/glsl_CombinerProgramBuilder.cpp @@ -317,8 +317,8 @@ public: " vec2 texCoordOut = texCoord*uCacheShiftScale[idx]; \n" " texCoordOut -= uTexOffset[idx]; \n" " texCoordOut += uCacheOffset[idx]; \n" - " if (uTextureFilterMode != 0 && uCacheFrameBuffer[idx] != 0) \n" - " texCoordOut -= vec2(0.5); \n" + " if (uTextureFilterMode != 0 && uCacheFrameBuffer[idx] != 0) \n" /* Workaround for framebuffer textures. */ + " texCoordOut -= vec2(0.0,1.0); \n" /* They contain garbage at the bottom. */ " return texCoordOut * uCacheScale[idx]; \n" "} \n" " \n"