mirror of
https://bitbucket.org/CPMADevs/cnq3
synced 2024-11-26 22:11:51 +00:00
preventing unnecessary work when g_forcedLoadImages gets larger
This commit is contained in:
parent
b8d9f7e5f1
commit
5e0739fdf9
1 changed files with 3 additions and 1 deletions
|
@ -837,8 +837,10 @@ image_t* R_FindImageFile( const char* name, int flags, textureWrap_t glWrapClamp
|
|||
const forcedLoadImage_t* const fli = g_forcedLoadImages + i;
|
||||
if ( hash == fli->shaderNameHash &&
|
||||
strcmp( R_GetMapName(), fli->mapName ) == 0 &&
|
||||
strcmp( name, fli->shaderName ) == 0 )
|
||||
strcmp( name, fli->shaderName ) == 0 ) {
|
||||
forcedLoad = qtrue;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
// see if the image is already loaded
|
||||
|
|
Loading…
Reference in a new issue