mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-10 23:01:50 +00:00
The last commit contained a broken version of tgatexture.cpp.
SVN r302 (trunk)
This commit is contained in:
parent
93beb4d42e
commit
e3c5dd4644
1 changed files with 5 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue