Where to find information about customtex, customprog and fragment programs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]<

 



On Thu, Apr 29, 2010 at 7:54 AM, Paul Jowett
<paul.jowett at systemic.com.au> wrote:
>>> Especially when trying to get mplayer
>>> to work with customtex files on Windows ("[gl] Error parsing
>>> customtex" is a problem from vo_gl.c).
>>
>> What format is the customtex file in?
>> EIther way it might be fixed.
>>
> I found the problem with loading the customtex file under Windows: the
> vo_gl.c code opens the custom tex file (which I presume will almost always
> be an image file) but doesn't specify binary mode:
>
> ? ?FILE *f = fopen(custom_tex, "r");
>
> Changing this to
>
> ? ?FILE *f = fopen(custom_tex, "rb");
>
> corrects the loading of binary textures. ?I'm not sure why the binary
> indicator is not required on MacOSX which happily loads the same image
> textures.
>

OSX, like most (all?) unices, does not have a 'binary mode' for
reading files; binary files are read in the same manner as text files.
Windows does have the distinction, so it would be required there.

Cheers

Tom


[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux