[MPlayer-cvslog] r18965 - trunk/libvo/vo_gl.c
reimar
subversion at mplayerhq.hu
Sat Jul 8 21:22:36 CEST 2006
Author: reimar
Date: Sat Jul 8 21:22:36 2006
New Revision: 18965
Modified:
trunk/libvo/vo_gl.c
Log:
More helpful ProgramEnvParameters.
Modified: trunk/libvo/vo_gl.c
==============================================================================
--- trunk/libvo/vo_gl.c (original)
+++ trunk/libvo/vo_gl.c Sat Jul 8 21:22:36 2006
@@ -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);
More information about the MPlayer-cvslog
mailing list