Browse Source

ref: gl: add size argument to COM_Default/ReplaceExtension calls

pull/2/head
Alibek Omarov 2 years ago
parent
commit
27aad9f4a0
  1. 5
      ref/gl/gl_backend.c

5
ref/gl/gl_backend.c

@ -578,9 +578,8 @@ qboolean VID_CubemapShot( const char *base, uint size, const float *vieworg, qbo
r_shot->buffer = buffer; r_shot->buffer = buffer;
// make sure what we have right extension // make sure what we have right extension
Q_strncpy( basename, base, MAX_STRING ); Q_strncpy( basename, base, sizeof( basename ));
COM_StripExtension( basename ); COM_ReplaceExtension( basename, ".tga", sizeof( basename ));
COM_DefaultExtension( basename, ".tga" );
// write image as 6 sides // write image as 6 sides
result = gEngfuncs.FS_SaveImage( basename, r_shot ); result = gEngfuncs.FS_SaveImage( basename, r_shot );

Loading…
Cancel
Save