mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-31 09:15:13 +00:00
ref: soft: attempt to fix freeze in decals on software renderer
This commit is contained in:
parent
70b26a13c2
commit
95a8d2f51f
@ -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…
x
Reference in New Issue
Block a user