Skip to content

Commit

Permalink
Close #86 Fence not being reset
Browse files Browse the repository at this point in the history
  • Loading branch information
lwjglgamedev committed Apr 20, 2024
1 parent 31d57ec commit 80b2554
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bookcontents/chapter-06/chapter-06.md
Original file line number Diff line number Diff line change
Expand Up @@ -1254,6 +1254,7 @@ public class ForwardRenderActivity {
int idx = swapChain.getCurrentFrame();
CommandBuffer commandBuffer = commandBuffers[idx];
Fence currentFence = fences[idx];
currentFence.reset();
SwapChain.SyncSemaphores syncSemaphores = swapChain.getSyncSemaphoresList()[idx];
queue.submit(stack.pointers(commandBuffer.getVkCommandBuffer()),
stack.longs(syncSemaphores.imgAcquisitionSemaphore().getVkSemaphore()),
Expand Down

0 comments on commit 80b2554

Please sign in to comment.