The last commit contained a broken version of tgatexture.cpp.

SVN r302 (trunk)
This commit is contained in:
Christoph Oelckers 2006-08-20 23:25:40 +00:00
parent 93beb4d42e
commit e3c5dd4644

View file

@ -92,8 +92,12 @@ FTexture *FTGATexture::Create(FileReader & file, int lumpnum)
TGAHeader hdr;
file.Seek(0, SEEK_SET);
file.Read(&hdr, sizeof(hdr));
#ifdef WORDS_BIGENDIAN
hdr.width = LittleShort(hdr.width);
hdr.height = LittleShort(hdr.height);
#endif
return new FTGATexture(lumpnum, LittleShort(hdr.width), LittleShort(hdr.height));
return new FTGATexture(lumpnum, &hdr);
}