Where to find information about customtex, customprog and fragment programs

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

 



>> 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.




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