summaryrefslogtreecommitdiffstats
path: root/libvo/gl_common.c
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-01-16 20:36:01 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-01-16 20:36:01 +0000
commitda446337145dd0f72d339eaee042aef15b31480e (patch)
tree7f68961cd42f2211cd276f29dbd3b7adb0af8b64 /libvo/gl_common.c
parent7b83b07bead39758ee8963d5016ff55d3671e6e7 (diff)
downloadmpv-da446337145dd0f72d339eaee042aef15b31480e.tar.bz2
mpv-da446337145dd0f72d339eaee042aef15b31480e.tar.xz
Fix OpenGL unsharp filter
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25773 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo/gl_common.c')
-rw-r--r--libvo/gl_common.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libvo/gl_common.c b/libvo/gl_common.c
index 5690b8a94c..fd963409b8 100644
--- a/libvo/gl_common.c
+++ b/libvo/gl_common.c
@@ -760,9 +760,10 @@ static const char *bicub_x_filt_template_RECT =
"TEX a.r, fragment.texcoord[%c], texture[%c], "textype";" \
"TEX b.r, coord.xyxy, texture[%c], "textype";" \
"TEX b.g, coord.zwzw, texture[%c], "textype";" \
+ "ADD b.r, b.r, b.g;" \
"TEX b.b, coord2.xyxy, texture[%c], "textype";" \
- "TEX b.a, coord2.zwzw, texture[%c], "textype";" \
- "DP4 b, b, {0.25, 0.25, 0.25, 0.25};" \
+ "TEX b.g, coord2.zwzw, texture[%c], "textype";" \
+ "DP3 b, b, {0.25, 0.25, 0.25};" \
"SUB b.r, a.r, b.r;" \
"MAD yuv.%c, b.r, %s, a.r;"