Browse Source

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

pull/2/head
Alibek Omarov 1 year ago
parent
commit
95a8d2f51f
  1. 2
      ref/soft/r_decals.c

2
ref/soft/r_decals.c

@ -632,7 +632,7 @@ void R_DecalSurface( msurface_t *surf, decalinfo_t *decalinfo ) @@ -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

Loading…
Cancel
Save