mirror of
https://github.com/FWGS/xash3d-fwgs
synced 2024-11-29 05:20:23 +01:00
ref: gl: add size argument to COM_Default/ReplaceExtension calls
This commit is contained in:
parent
71a3cedba8
commit
27aad9f4a0
@ -578,9 +578,8 @@ qboolean VID_CubemapShot( const char *base, uint size, const float *vieworg, qbo
|
||||
r_shot->buffer = buffer;
|
||||
|
||||
// make sure what we have right extension
|
||||
Q_strncpy( basename, base, MAX_STRING );
|
||||
COM_StripExtension( basename );
|
||||
COM_DefaultExtension( basename, ".tga" );
|
||||
Q_strncpy( basename, base, sizeof( basename ));
|
||||
COM_ReplaceExtension( basename, ".tga", sizeof( basename ));
|
||||
|
||||
// write image as 6 sides
|
||||
result = gEngfuncs.FS_SaveImage( basename, r_shot );
|
||||
|
Loading…
Reference in New Issue
Block a user