Skip to content

Commit e8fbd3b

Browse files
drug007eagleivg
authored andcommitted
Remove some asserts.
Dunno how but XRay works with null Details.
1 parent d844267 commit e8fbd3b

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

src/Layers/xrRenderPC_GL/rgl.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,6 @@ void CRender::OnFrame()
452452
if (ps_r2_ls_flags.test(R2FLAG_EXP_MT_CALC))
453453
{
454454
// MT-details (@front)
455-
assert (Details);
456455
Device.seqParallel.insert(Device.seqParallel.begin(),
457456
fastdelegate::FastDelegate0<>(Details, &CDetailManager::MT_CALC));
458457

src/xrCore/fastdelegate.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -971,8 +971,6 @@ class FastDelegate0
971971
}
972972
// Invoke the delegate
973973
RetType operator()() const {
974-
assert (m_Closure.GetClosureThis());
975-
assert (m_Closure.GetClosureMemPtr());
976974
return (m_Closure.GetClosureThis()->*(m_Closure.GetClosureMemPtr()))();
977975
}
978976
// Implicit conversion to "bool" using the safe_bool idiom

0 commit comments

Comments
 (0)