# HG changeset patch # User reimar # Date 1152386556 0 # Node ID 3aaed991e8cd9ca4d08d5f71ca7f0dde86733828 # Parent dc4a1a985bb22cef7912c488b5a27d9d0944d2ca More helpful ProgramEnvParameters. diff -r dc4a1a985bb2 -r 3aaed991e8cd libvo/vo_gl.c --- a/libvo/vo_gl.c Sat Jul 08 17:42:07 2006 +0000 +++ b/libvo/vo_gl.c Sat Jul 08 19:22:36 2006 +0000 @@ -177,7 +177,8 @@ 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 @@ 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);