Skip to content

Commit

Permalink
vulkan: swapchain resize condition update
Browse files Browse the repository at this point in the history
  • Loading branch information
poweifeng committed Jul 12, 2023
1 parent 18c3c36 commit 8797ac3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion filament/backend/src/vulkan/VulkanSwapChain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ void VulkanSwapChain::acquire(bool& resized) {
}

// Check if the swapchain should be resized.
if (!mHeadless && (resized = mPlatform->hasResized(swapChain))) {
if ((resized = mPlatform->hasResized(swapChain))) {
mCommands->flush();
mCommands->wait();
mPlatform->recreate(swapChain);
Expand Down

0 comments on commit 8797ac3

Please sign in to comment.