From d1cbef4d8618dbaa523496f2f9a2fa16d91c34d9 Mon Sep 17 00:00:00 2001 From: reimar Date: Sat, 8 Jul 2006 19:22:36 +0000 Subject: More helpful ProgramEnvParameters. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18965 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/vo_gl.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'libvo') 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); -- cgit v1.2.3