mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 03:24:56 +08:00
engine: common: mod_bmodel: make texture name array larger so it fits both world name and miptex name
This commit is contained in:
@@ -639,7 +639,6 @@ void ID_GetMD5ForAddress( char *key, netadr_t adr, size_t size )
|
||||
MD5Context_t ctx;
|
||||
byte buf[32], md5[16];
|
||||
size_t bufsize = 0;
|
||||
bloomfilter_t value = id;
|
||||
|
||||
switch( NET_NetadrType( &adr ))
|
||||
{
|
||||
|
||||
@@ -2686,7 +2686,7 @@ static void Mod_LoadTextureData( model_t *mod, dbspmodel_t *bmod, int textureInd
|
||||
// WAD failed, so use internal texture (if present)
|
||||
if( mipTex->offsets[0] > 0 && texture->gl_texturenum == 0 )
|
||||
{
|
||||
char texName[64];
|
||||
string texName;
|
||||
const size_t size = Mod_CalculateMipTexSize( mipTex, usesCustomPalette );
|
||||
|
||||
Q_snprintf( texName, sizeof( texName ), "#%s:%s.mip", loadstat.name, mipTex->name );
|
||||
@@ -2719,7 +2719,7 @@ static void Mod_LoadTextureData( model_t *mod, dbspmodel_t *bmod, int textureInd
|
||||
|
||||
if( FBitSet( REF_GET_PARM( PARM_TEX_FLAGS, texture->gl_texturenum ), TF_HAS_LUMA ) && !texture->fb_texturenum )
|
||||
{
|
||||
char texName[64];
|
||||
string texName;
|
||||
|
||||
Q_snprintf( texName, sizeof( texName ), "#%s:%s_luma.mip", loadstat.name, mipTex->name );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user