Mercurial > mplayer.hg
comparison libvo/vo_gl.c @ 31064:7d174bdfcd9a
100l, open the customtex also in binary mode, not just the program.
author | reimar |
---|---|
date | Fri, 30 Apr 2010 17:12:52 +0000 |
parents | 4fdb46b8c2c9 |
children | 52eb10f9e51e |
comparison
equal
deleted
inserted
replaced
31063:55cd4161425a | 31064:7d174bdfcd9a |
---|---|
262 mpglProgramEnvParameter4f(GL_FRAGMENT_PROGRAM, 0, | 262 mpglProgramEnvParameter4f(GL_FRAGMENT_PROGRAM, 0, |
263 1.0 / texture_width, 1.0 / texture_height, | 263 1.0 / texture_width, 1.0 / texture_height, |
264 texture_width, texture_height); | 264 texture_width, texture_height); |
265 } | 265 } |
266 if (custom_tex) { | 266 if (custom_tex) { |
267 FILE *f = fopen(custom_tex, "r"); | 267 FILE *f = fopen(custom_tex, "rb"); |
268 if (!f) | 268 if (!f) |
269 mp_msg(MSGT_VO, MSGL_WARN, | 269 mp_msg(MSGT_VO, MSGL_WARN, |
270 "[gl] Could not read customtex %s\n", custom_tex); | 270 "[gl] Could not read customtex %s\n", custom_tex); |
271 else { | 271 else { |
272 int width, height, maxval; | 272 int width, height, maxval; |