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 );