ref: soft: attempt to fix freeze in decals on software renderer

This commit is contained in:
Alibek Omarov 2023-05-20 20:52:06 +03:00
parent 70b26a13c2
commit 95a8d2f51f
1 changed files with 1 additions and 1 deletions

View File

@ -632,7 +632,7 @@ void R_DecalSurface( msurface_t *surf, decalinfo_t *decalinfo )
{
// NOTE: we may have the decal on this surface that come from another level.
// check duplicate with same position and texture
while( decal != NULL )
while( decal != NULL && decal != decal->pnext )
{
if( VectorCompare( decal->position, decalinfo->m_Position ) && decal->texture == decalinfo->m_iTexture )
return; // decal already exists, don't place it again