summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2021-09-13 13:39:20 -0700
committerGitHub <noreply@github.com>2021-09-13 16:39:20 -0400
commitd9d42879c4b6c0202732897ec60a355ccc91f243 (patch)
tree5f0a2b9c4efedf4ae28315e275be75f7de16736b
parent579df478de078f0a22f72f499c13ce442b4cd290 (diff)
Fix a crash in gfx d3d TransientHeap implementation. (#1937)
Co-authored-by: Yong He <yhe@nvidia.com>
-rw-r--r--tools/gfx/d3d12/render-d3d12.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/gfx/d3d12/render-d3d12.cpp b/tools/gfx/d3d12/render-d3d12.cpp
index 7e436d28d..feacc624d 100644
--- a/tools/gfx/d3d12/render-d3d12.cpp
+++ b/tools/gfx/d3d12/render-d3d12.cpp
@@ -604,7 +604,7 @@ public:
{
uint64_t waitValue;
HANDLE fenceEvent;
- ID3D12Fence* fence = nullptr;
+ ComPtr<ID3D12Fence> fence = nullptr;
};
ShortList<QueueWaitInfo, 4> m_waitInfos;