mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-17 18:40:02 +00:00
engine: common: imagelib: fixed loading 32 bits per pixel BMP files
This commit is contained in:
parent
8717843333
commit
49fc6143ab
@ -69,8 +69,11 @@ qboolean Image_LoadBMP( const char *name, const byte *buffer, fs_offset_t filesi
|
|||||||
// bogus compression? Only non-compressed supported.
|
// bogus compression? Only non-compressed supported.
|
||||||
if( bhdr.compression != BI_RGB )
|
if( bhdr.compression != BI_RGB )
|
||||||
{
|
{
|
||||||
Con_DPrintf( S_ERROR "Image_LoadBMP: only uncompressed BMP files supported (%s)\n", name );
|
if( bhdr.bitsPerPixel != 32 || bhdr.compression != BI_BITFIELDS )
|
||||||
return false;
|
{
|
||||||
|
Con_DPrintf( S_ERROR "Image_LoadBMP: only uncompressed BMP files supported (%s)\n", name );
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
image.width = columns = bhdr.width;
|
image.width = columns = bhdr.width;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user