mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 03:24:56 +08:00
ref: remove limit on total amount of textures a studio model can contain
This commit is contained in:
@@ -3840,7 +3840,7 @@ void Mod_StudioLoadTextures( model_t *mod, void *data )
|
||||
return;
|
||||
|
||||
ptexture = (mstudiotexture_t *)(((byte *)phdr) + phdr->textureindex);
|
||||
if( phdr->textureindex > 0 && phdr->numtextures <= MAXSTUDIOSKINS )
|
||||
if( phdr->textureindex > 0 )
|
||||
{
|
||||
for( i = 0; i < phdr->numtextures; i++ )
|
||||
R_StudioLoadTexture( mod, phdr, &ptexture[i] );
|
||||
|
||||
@@ -3473,7 +3473,7 @@ void GAME_EXPORT Mod_StudioLoadTextures( model_t *mod, void *data )
|
||||
return;
|
||||
|
||||
ptexture = (mstudiotexture_t *)(((byte *)phdr ) + phdr->textureindex );
|
||||
if( phdr->textureindex > 0 && phdr->numtextures <= MAXSTUDIOSKINS )
|
||||
if( phdr->textureindex > 0 )
|
||||
{
|
||||
for( i = 0; i < phdr->numtextures; i++ )
|
||||
R_StudioLoadTexture( mod, phdr, &ptexture[i] );
|
||||
|
||||
Reference in New Issue
Block a user