Skip to content

Commit

Permalink
client: render: fixed PVS culling for sprite models
Browse files Browse the repository at this point in the history
  • Loading branch information
SNMetamorph committed Nov 28, 2024
1 parent 1eefd65 commit 0c766f9
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions client/render/gl_sprite.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -194,12 +194,15 @@ Cull sprite model by bbox
*/
bool CSpriteModelRenderer :: CullSpriteModel( void )
{
if( !m_pSpriteHeader )
if (!m_pSpriteHeader)
return true;

SpriteComputeBBox( m_pCurrentEntity, NULL );
SpriteComputeBBox(m_pCurrentEntity, NULL);

return R_CullModel( m_pCurrentEntity, sprite_absmin, sprite_absmax );
if (R_CullModel(m_pCurrentEntity, sprite_absmin, sprite_absmax))
return true;

return Mod_CheckBoxVisible(sprite_absmin, sprite_absmax);
}

/*
Expand Down

0 comments on commit 0c766f9

Please sign in to comment.