Skip to content

Commit

Permalink
more debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
knokko committed Nov 19, 2024
1 parent 6027438 commit 4dd1ad6
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,14 @@ private void destroyOldResources() {
int oldSwapchainIndex = swapchainIndex;
while (swapchainIndex > 0) {
swapchainIndex -= 1;
destroyStateNow(swapchains.get(swapchainIndex), true);
var oldSwapchain = swapchains.get(swapchainIndex);
for (var image : oldSwapchain.acquiredImages) {
if (!image.acquireFence.isSignaled()) {
System.err.println("Acquire fence is not signaled when swapchain should be destroyed");
if (!image.acquireFence.isPending()) System.err.println("It's not even pending!");
}
}
destroyStateNow(oldSwapchain, true);
}
var newSwapchains = new ArrayList<>(swapchains.subList(oldSwapchainIndex, swapchains.size()));
swapchains.clear();
Expand Down

0 comments on commit 4dd1ad6

Please sign in to comment.