ref_gu: depth bug fixed, sort code removed

This commit is contained in:
Crow-bar
2022-10-20 16:50:48 +03:00
parent f5ca0175a5
commit 89ee68d5d0
2 changed files with 8 additions and 43 deletions
+4
View File
@@ -1616,12 +1616,16 @@ static void Mod_LoadSubmodels( dbspmodel_t *bmod )
oldmaxfaces = Q_max( oldmaxfaces, out->numfaces );
}
#if XASH_PSP
refState.max_surfaces = 0; // sorting disabled
#else
// these array used to sort translucent faces in bmodels
if( oldmaxfaces > refState.max_surfaces )
{
refState.draw_surfaces = (sortedface_t *)Z_Realloc( refState.draw_surfaces, oldmaxfaces * sizeof( sortedface_t ));
refState.max_surfaces = oldmaxfaces;
}
#endif
}
/*