From e8fbd3b6d39ae09426e7bd35b31e52264ccaa932 Mon Sep 17 00:00:00 2001 From: drug007 Date: Sat, 3 Nov 2018 00:45:02 +0300 Subject: [PATCH] Remove some asserts. Dunno how but XRay works with null Details. --- src/Layers/xrRenderPC_GL/rgl.cpp | 1 - src/xrCore/fastdelegate.h | 2 -- 2 files changed, 3 deletions(-) diff --git a/src/Layers/xrRenderPC_GL/rgl.cpp b/src/Layers/xrRenderPC_GL/rgl.cpp index df3a0ce2099..8516260b51f 100644 --- a/src/Layers/xrRenderPC_GL/rgl.cpp +++ b/src/Layers/xrRenderPC_GL/rgl.cpp @@ -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)); diff --git a/src/xrCore/fastdelegate.h b/src/xrCore/fastdelegate.h index 8ad31c50219..174986fcf92 100644 --- a/src/xrCore/fastdelegate.h +++ b/src/xrCore/fastdelegate.h @@ -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