Browse Source

engine: common: imagelib: fixed BMP files estimate size calculation with NPOT textures

pull/2/head
SNMetamorph 2 years ago committed by Alibek Omarov
parent
commit
8717843333
  1. 2
      engine/common/imagelib/img_bmp.c

2
engine/common/imagelib/img_bmp.c

@ -174,7 +174,7 @@ qboolean Image_LoadBMP( const char *name, const byte *buffer, fs_offset_t filesi @@ -174,7 +174,7 @@ qboolean Image_LoadBMP( const char *name, const byte *buffer, fs_offset_t filesi
break;
}
estimatedSize = ( buf_p - buffer ) + ( image.width + padSize ) * image.height * ( bhdr.bitsPerPixel >> 3 );
estimatedSize = ( buf_p - buffer ) + image.width * image.height * ( bhdr.bitsPerPixel >> 3 );
if( filesize < estimatedSize )
{
if( image.palette )

Loading…
Cancel
Save