Browse Source

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

pull/2/head
Alibek Omarov 2 years 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 )
{ {
// NOTE: we may have the decal on this surface that come from another level. // NOTE: we may have the decal on this surface that come from another level.
// check duplicate with same position and texture // 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 ) if( VectorCompare( decal->position, decalinfo->m_Position ) && decal->texture == decalinfo->m_iTexture )
return; // decal already exists, don't place it again return; // decal already exists, don't place it again

Loading…
Cancel
Save