#46 TGA Read error in some case

closed-fixed
Herbert Law
None
5
2007-01-11
2006-08-04
Nicolas PERRET
No

The TGA file loader uses CrtBool CrtFile::LoadFile(
CrtChar *fName).

Because this fonction does a fopen( fName, "r"); and
not a fopen( fName, "rb"); if you have a EOF code in
the data of the TGA file, the file will not be fully
read, it will stop at the EOF.

Discussion

  • Andy Lorino
    Andy Lorino
    2006-10-09

    • assigned_to: nobody --> sceahklaw
     
  • Herbert Law
    Herbert Law
    2006-11-16

    • status: open --> open-fixed
     
  • Herbert Law
    Herbert Law
    2006-11-16

    Logged In: YES
    user_id=1603796
    Originator: NO

    TGA loader is now using fp= fopen( fName, "rb");
    Note that COLLADA RT use TGAloader to loader .tga files only. All other image formate use DevIL library.

    Thanks,
    Herbert

     
  • Herbert Law
    Herbert Law
    2006-11-16

    Logged In: YES
    user_id=1603796
    Originator: NO

    TGA loader is now using fp= fopen( fName, "rb");
    Note that COLLADA RT use TGAloader to loader .tga files only. All other image formate use DevIL library.

    Thanks,
    Herbert

     
  • Herbert Law
    Herbert Law
    2007-01-11

    • status: open-fixed --> closed-fixed