mirror of
https://github.com/mpv-player/mpv
synced 2025-03-30 23:38:10 +00:00
More helpful ProgramEnvParameters.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18965 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
9af160ed34
commit
d1cbef4d86
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user