changeset 18960:3aaed991e8cd

More helpful ProgramEnvParameters.
author reimar
date Sat, 08 Jul 2006 19:22:36 +0000
parents dc4a1a985bb2
children 9f1bbc70c773
files libvo/vo_gl.c
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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);