diff options
Diffstat (limited to 'tools/platform/gui.cpp')
| -rw-r--r-- | tools/platform/gui.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/platform/gui.cpp b/tools/platform/gui.cpp index e33a504bb..f78a52ce4 100644 --- a/tools/platform/gui.cpp +++ b/tools/platform/gui.cpp @@ -188,7 +188,7 @@ void GUI::beginFrame() ImGui::NewFrame(); } -void GUI::endFrame(IFramebuffer* framebuffer) +void GUI::endFrame(ITransientResourceHeap* transientHeap, IFramebuffer* framebuffer) { ImGui::Render(); @@ -217,7 +217,7 @@ void GUI::endFrame(IFramebuffer* framebuffer) auto indexBuffer = device->createBufferResource( IResource::Usage::IndexBuffer, indexBufferDesc); - auto cmdBuf = queue->createCommandBuffer(); + auto cmdBuf = transientHeap->createCommandBuffer(); auto encoder = cmdBuf->encodeResourceCommands(); { for(int ii = 0; ii < commandListCount; ++ii) |
