mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-17 18:40:02 +00:00
engine: common: imagelib: fixed BMP files estimate size calculation with NPOT textures
This commit is contained in:
parent
f6d8996968
commit
8717843333
@ -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…
x
Reference in New Issue
Block a user