mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 03:24:56 +08:00
Merge 4140 update
This commit is contained in:
@@ -1945,7 +1945,7 @@ static char **pfnGetFilesList( const char *pattern, int *numFiles, int gamediron
|
||||
|
||||
static void *pfnMem_Alloc( size_t cb, const char *filename, const int fileline )
|
||||
{
|
||||
return _Mem_Alloc( svgame.mempool, cb, filename, fileline );
|
||||
return _Mem_Alloc( svgame.mempool, cb, true, filename, fileline );
|
||||
}
|
||||
|
||||
static void pfnMem_Free( void *mem, const char *filename, const int fileline )
|
||||
@@ -1981,7 +1981,7 @@ const byte *pfnLoadImagePixels( const char *filename, int *width, int *height )
|
||||
|
||||
if( !pic ) return NULL;
|
||||
|
||||
buffer = Mem_Alloc( svgame.mempool, pic->size );
|
||||
buffer = Mem_Malloc( svgame.mempool, pic->size );
|
||||
if( buffer ) memcpy( buffer, pic->buffer, pic->size );
|
||||
if( width ) *width = pic->width;
|
||||
if( height ) *height = pic->height;
|
||||
|
||||
Reference in New Issue
Block a user