Skip to content

Commit

Permalink
Don't draw bullets in the SSAO pass. May help with some crashes relat…
Browse files Browse the repository at this point in the history
…ed to bullet drawing on some systems.
  • Loading branch information
BSVino committed Nov 10, 2014
1 parent 28a0dc0 commit 736f7c4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mp/src/game/shared/sdk/da_bulletmanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

#ifdef CLIENT_DLL
#include "view.h"
#include "model_types.h"
#endif

#include "sdk_gamerules.h"
Expand Down Expand Up @@ -539,6 +540,9 @@ int CBulletManager::CBullet::DrawModel( int flags )
if (m_flCurrAlpha < 0)
return 0;

if (flags & STUDIO_SHADOWDEPTHTEXTURE)
return 0;

#ifdef __linux__
return 0;
#endif
Expand Down

0 comments on commit 736f7c4

Please sign in to comment.