Browse Source

Removed check when RenderDoc is present.

Branimir Karadžić 10 years ago
parent
commit
cbb3f6d495
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/renderer_d3d.h

+ 2 - 1
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
 				);