summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-07-08 19:22:36 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-07-08 19:22:36 +0000
commitd1cbef4d8618dbaa523496f2f9a2fa16d91c34d9 (patch)
tree628a96fc5d34845d031fffdf5d1a673b4a73948f /libvo
parent9af160ed34156017cbc5d990133ea88ea42ed759 (diff)
downloadmpv-d1cbef4d8618dbaa523496f2f9a2fa16d91c34d9.tar.bz2
mpv-d1cbef4d8618dbaa523496f2f9a2fa16d91c34d9.tar.xz
More helpful ProgramEnvParameters.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18965 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r--libvo/vo_gl.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libvo/vo_gl.c b/libvo/vo_gl.c
index efce669724..8e28af9296 100644
--- a/libvo/vo_gl.c
+++ b/libvo/vo_gl.c
@@ -177,7 +177,8 @@ static void update_yuvconv(void) {
free(prog);
}
ProgramEnvParameter4f(GL_FRAGMENT_PROGRAM, 0,
- 1.0 / texture_width, 1.0 / texture_height, 0, 0);
+ 1.0 / texture_width, 1.0 / texture_height,
+ texture_width, texture_height);
}
if (custom_tex) {
FILE *f = fopen(custom_tex, "r");
@@ -191,7 +192,7 @@ static void update_yuvconv(void) {
custom_tlin?GL_LINEAR:GL_NEAREST,
f, &width, &height, &maxval))
ProgramEnvParameter4f(GL_FRAGMENT_PROGRAM, 1,
- 1.0 / width, 1.0 / height, 1.0 / maxval, 0);
+ 1.0 / width, 1.0 / height, width, height);
else
mp_msg(MSGT_VO, MSGL_WARN,
"[gl] Error parsing customtex %s\n", custom_tex);