engine: common: mod_bmodel: remove useless copy before Q_strnlwr, as Q_strnlwr already copies string
This commit is contained in:
parent
9a24cb8c96
commit
f67b97e63c
1 changed files with 1 additions and 2 deletions
|
@ -2145,8 +2145,7 @@ static void Mod_LoadTexture( dbspmodel_t *bmod, int textureIndex )
|
||||||
loadmodel->textures[textureIndex] = texture;
|
loadmodel->textures[textureIndex] = texture;
|
||||||
|
|
||||||
// Ensure texture name is lowercase.
|
// Ensure texture name is lowercase.
|
||||||
Q_strncpy( texture->name, mipTex->name, sizeof( texture->name ));
|
Q_strnlwr( mipTex->name, texture->name, sizeof( texture->name ));
|
||||||
Q_strnlwr( texture->name, texture->name, sizeof( texture->name ));
|
|
||||||
|
|
||||||
texture->width = mipTex->width;
|
texture->width = mipTex->width;
|
||||||
texture->height = mipTex->height;
|
texture->height = mipTex->height;
|
||||||
|
|
Loading…
Add table
Reference in a new issue