mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-09 05:41:46 +08:00
engine: client: use utility function to copy an image before quantization
This commit is contained in:
@@ -132,10 +132,7 @@ qboolean CL_ConvertImageToWAD3( const char *filename )
|
||||
}
|
||||
else
|
||||
{
|
||||
quant = Mem_Malloc( host.imagepool, sizeof( *quant ));
|
||||
*quant = *image;
|
||||
quant->buffer = Mem_Malloc( host.imagepool, quant->size );
|
||||
memcpy( quant->buffer, image->buffer, quant->size );
|
||||
quant = FS_CopyImage( image );
|
||||
Image_Quantize( quant ); // it's so weird, it writes result to same structure as used for input data
|
||||
|
||||
if( !quant || !quant->buffer || !quant->palette )
|
||||
|
||||
Reference in New Issue
Block a user