Skip to content

Commit d4ea724

Browse files
author
devsh
committed
small fix for imgui
1 parent 134fbda commit d4ea724

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/nbl/ext/ImGui/ImGui.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ namespace nbl::ext::imgui
231231
return IQueue::RESULT::OTHER_ERROR;
232232
}
233233

234-
SIntendedSubmitInfo sInfo;
234+
SIntendedSubmitInfo sInfo = {};
235235
{
236236
IQueue::SSubmitInfo::SCommandBufferInfo cmdInfo = { cmdBuffer };
237237

@@ -244,9 +244,9 @@ namespace nbl::ext::imgui
244244
scratchSemaphore->setObjectDebugName("Nabla IMGUI extension Scratch Semaphore");
245245

246246
sInfo.queue = transfer;
247-
sInfo.waitSemaphores = {};
248-
sInfo.commandBuffers = { &cmdInfo, 1 };
249-
sInfo.scratchSemaphore = // TODO: do I really need it? YES, ALWAYS!
247+
// todo: improve later (multiple buffering) when using asset converter
248+
sInfo.scratchCommandBuffers = { &cmdInfo, 1 };
249+
sInfo.scratchSemaphore =
250250
{
251251
.semaphore = scratchSemaphore.get(),
252252
.value = 0,
@@ -289,7 +289,7 @@ namespace nbl::ext::imgui
289289
cmdBuffer->pipelineBarrier(E_DEPENDENCY_FLAGS::EDF_NONE,{.imgBarriers=barriers});
290290
cmdBuffer->end();
291291

292-
const auto submit = sInfo.popSubmit({});
292+
const auto submit = sInfo.popSubmit(cmdBuffer,{});
293293
if (transfer->submit(submit)!=IQueue::RESULT::SUCCESS)
294294
{
295295
logger->log("Could not submit workload for font texture upload.", system::ILogger::ELL_ERROR);

0 commit comments

Comments
 (0)