summaryrefslogtreecommitdiffstats
path: root/tools/gfx/debug-layer/debug-command-queue.cpp
diff options
context:
space:
mode:
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)
{