From 6199426e5ed355f3e4f94cff8b944ec442f5dc3f Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Sat, 25 Jun 2022 17:03:12 +0300 Subject: [PATCH] Revert "engine: common: imagelib: img_tga.c: fix broken tga flip again." This reverts commit e5720cf8b998cee653018583a116ff2f377bc14b. --- engine/common/imagelib/img_tga.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/common/imagelib/img_tga.c b/engine/common/imagelib/img_tga.c index 6ad7ced3..a182075b 100644 --- a/engine/common/imagelib/img_tga.c +++ b/engine/common/imagelib/img_tga.c @@ -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 ); // 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; row_inc = 0;