message: Fixed issue with counting invalid master blocks in DynamicHeap (fixed https://github.com/DiligentGraphics/DiligentEngine/issues/33)
diff: @@ -154,6 +154,7 @@ public:
  };
  for(auto& Block : Blocks)
  {
  + DEV_CHECK_ERR(Block.IsValid(), "Attempting to release invalid master block");
  Device.SafeReleaseDeviceObject(StaleMasterBlock{std::move(Block), this}, CmdQueueMask);
  }
  }
  @@ -169,10 +170,14 @@ protected:
  MasterBlock AllocateMasterBlock(OffsetType SizeInBytes, OffsetType Alignment)
  {
  std::lock_guard<std::mutex> Lock(m_AllocationsMgrMtx);
  + auto NewBlock = m_AllocationsMgr.Allocate(SizeInBytes, Alignment);
  #ifdef DEVELOPMENT
  + if (NewBlock.IsValid())
  + {
  ++m_MasterBlockCounter;
  + }
  #endif
  - return m_AllocationsMgr.Allocate(SizeInBytes, Alignment);
  + return NewBlock;
  }
  private:
  