The current trunk version can't load TGA files properly, when compiled with
HAVE_FREEIMAGE. The reason is that SeekProc in ImageIO.cpp lacks SEEK_END
handling. Adding it resolves the problem:
Index: nvimage/ImageIO.cpp
===================================================================
--- nvimage/ImageIO.cpp (revision 1160)
+++ nvimage/ImageIO.cpp (working copy)
@@ -345,6 +345,9 @@
case SEEK_SET :
s->seek(offset);
break;
+ case SEEK_END :
+ s->seek(s->size() + offset);
+ break;
case SEEK_CUR :
s->seek(s->tell() + offset);
break;
Original issue reported on code.google.com by arseny.k...@gmail.com on 11 Oct 2010 at 5:39
Original issue reported on code.google.com by
arseny.k...@gmail.com
on 11 Oct 2010 at 5:39