From cbb3f6d495e1f4b19ddb102ba07c8c8af152de5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Thu, 3 Dec 2015 18:11:13 -0800 Subject: [PATCH] Removed check when RenderDoc is present. --- src/renderer_d3d.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/renderer_d3d.h b/src/renderer_d3d.h index 795b02ef..4bd42e59 100644 --- a/src/renderer_d3d.h +++ b/src/renderer_d3d.h @@ -104,7 +104,8 @@ namespace bgfx { invalidate(_key); m_hashMap.insert(stl::make_pair(_key, _value) ); - BX_CHECK(1 == getRefCount(_value), "Interface ref count %d, hash %" PRIx64 "." + BX_CHECK(isGraphicsDebuggerPresent() + || 1 == getRefCount(_value), "Interface ref count %d, hash %" PRIx64 "." , getRefCount(_value) , _key );