aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFranz Koch <da-anda@kodi.tv>2022-05-08 16:08:30 +0200
committerFranz Koch <da-anda@kodi.tv>2022-05-08 16:08:30 +0200
commitc97d972885fc6ef4e83588d20aca435b781b32e1 (patch)
treeb5747831e9f341d0ad02ea244d1629fd00319e1e
parentc4fb873b50ea16351f1d152c43302e94216c85c9 (diff)
[video][gles] fix subpar quality HQ convolution scalers due to likely a copy/paste error. Fixes #21011
-rw-r--r--system/shaders/GLES/2.0/gles_convolution-4x4.frag2
-rw-r--r--system/shaders/GLES/2.0/gles_convolution-6x6.frag2
2 files changed, 2 insertions, 2 deletions
diff --git a/system/shaders/GLES/2.0/gles_convolution-4x4.frag b/system/shaders/GLES/2.0/gles_convolution-4x4.frag
index 85bec53d4f..3043b10ed1 100644
--- a/system/shaders/GLES/2.0/gles_convolution-4x4.frag
+++ b/system/shaders/GLES/2.0/gles_convolution-4x4.frag
@@ -31,7 +31,7 @@ uniform sampler2D kernelTex;
vec4 weight(float pos)
{
#if defined(HAS_FLOAT_TEXTURE)
- return texture2D(kernelTex, vec2(pos - 0.5));
+ return texture2D(kernelTex, vec2(pos, 0.5));
#else
return texture2D(kernelTex, vec2(pos - 0.5)) * 2.0 - 1.0;
#endif
diff --git a/system/shaders/GLES/2.0/gles_convolution-6x6.frag b/system/shaders/GLES/2.0/gles_convolution-6x6.frag
index c992b4b4a9..d043c75f0d 100644
--- a/system/shaders/GLES/2.0/gles_convolution-6x6.frag
+++ b/system/shaders/GLES/2.0/gles_convolution-6x6.frag
@@ -31,7 +31,7 @@ uniform sampler2D kernelTex;
vec3 weight(float pos)
{
#if defined(HAS_FLOAT_TEXTURE)
- return texture2D(kernelTex, vec2(pos - 0.5)).rgb;
+ return texture2D(kernelTex, vec2(pos, 0.5)).rgb;
#else
return texture2D(kernelTex, vec2(pos - 0.5)).rgb * 2.0 - 1.0;
#endif