mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-17 18:40:02 +00:00
Revert "engine: common: imagelib: img_tga.c: fix broken tga flip again."
This reverts commit e5720cf8b998cee653018583a116ff2f377bc14b.
This commit is contained in:
parent
4e295622be
commit
6199426e5e
@ -127,7 +127,7 @@ qboolean Image_LoadTGA( const char *name, const byte *buffer, fs_offset_t filesi
|
|||||||
targa_rgba = image.rgba = Mem_Malloc( host.imagepool, image.size );
|
targa_rgba = image.rgba = Mem_Malloc( host.imagepool, image.size );
|
||||||
|
|
||||||
// if bit 5 of attributes isn't set, the image has been stored from bottom to top
|
// if bit 5 of attributes isn't set, the image has been stored from bottom to top
|
||||||
if( Image_CheckFlag( IL_DONTFLIP_TGA ) && targa_header.attributes & 0x20 )
|
if( Image_CheckFlag( IL_DONTFLIP_TGA ) || targa_header.attributes & 0x20 )
|
||||||
{
|
{
|
||||||
pixbuf = targa_rgba;
|
pixbuf = targa_rgba;
|
||||||
row_inc = 0;
|
row_inc = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user