summaryrefslogtreecommitdiffstats
path: root/tools/gfx/debug-layer/debug-command-queue.cpp
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2022-09-28 10:40:47 -0700
committerGitHub <noreply@github.com>2022-09-28 10:40:47 -0700
commit7708d205cb186f2b95d8daa2d8e0c655488fc34a (patch)
treeb46d2c60e296fc2e39e029b5f0666b2203451e19 /tools/gfx/debug-layer/debug-command-queue.cpp
parentdafe651ecf21f2dce7f156179af785adca08ced0 (diff)
Fix gfx debug layer crashes. (#2416)
Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'tools/gfx/debug-layer/debug-command-queue.cpp')
-rw-r--r--tools/gfx/debug-layer/debug-command-queue.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/gfx/debug-layer/debug-command-queue.cpp b/tools/gfx/debug-layer/debug-command-queue.cpp
index c196fa06a..d094f3438 100644
--- a/tools/gfx/debug-layer/debug-command-queue.cpp
+++ b/tools/gfx/debug-layer/debug-command-queue.cpp
@@ -27,8 +27,8 @@ void DebugCommandQueue::executeCommandBuffers(GfxCount count, ICommandBuffer* co
for (GfxIndex i = 0; i < count; i++)
{
auto cmdBufferIn = commandBuffers[i];
- auto cmdBufferImpl = static_cast<DebugCommandBuffer*>(cmdBufferIn);
- auto innerCmdBuffer = cmdBufferImpl->baseObject.get();
+ auto cmdBufferImpl = getDebugObj(cmdBufferIn);
+ auto innerCmdBuffer = getInnerObj(cmdBufferIn);
innerCommandBuffers.add(innerCmdBuffer);
if (cmdBufferImpl->isOpen)
{