Skip to content

Commit

Permalink
Remove some asserts.
Browse files Browse the repository at this point in the history
Dunno how but XRay works with null Details.
  • Loading branch information
drug007 authored and eagleivg committed Nov 8, 2018
1 parent d844267 commit e8fbd3b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/Layers/xrRenderPC_GL/rgl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,6 @@ void CRender::OnFrame()
if (ps_r2_ls_flags.test(R2FLAG_EXP_MT_CALC))
{
// MT-details (@front)
assert (Details);
Device.seqParallel.insert(Device.seqParallel.begin(),
fastdelegate::FastDelegate0<>(Details, &CDetailManager::MT_CALC));

Expand Down
2 changes: 0 additions & 2 deletions src/xrCore/fastdelegate.h
Original file line number Diff line number Diff line change
Expand Up @@ -971,8 +971,6 @@ class FastDelegate0
}
// Invoke the delegate
RetType operator()() const {
assert (m_Closure.GetClosureThis());
assert (m_Closure.GetClosureMemPtr());
return (m_Closure.GetClosureThis()->*(m_Closure.GetClosureMemPtr()))();
}
// Implicit conversion to "bool" using the safe_bool idiom
Expand Down

0 comments on commit e8fbd3b

Please sign in to comment.