Fix glTF build & settings issues for macOS, fix triangle example resizing, update macOS examples.h file

(cherry picked from commit 47061ff99446d8826ebe7fe187467ba638236a70)
This commit is contained in:
Stephen Saunders 2022-05-09 14:09:47 -04:00
parent b1f10d7393
commit 2810087752
7 changed files with 39 additions and 21 deletions

View file

@ -335,7 +335,10 @@ public:
void draw()
{
// Get next image in the swap chain (back/front buffer)
VK_CHECK_RESULT(swapChain.acquireNextImage(presentCompleteSemaphore, &currentBuffer));
VkResult acquire = swapChain.acquireNextImage(presentCompleteSemaphore, &currentBuffer);
if (!((acquire == VK_SUCCESS) || (acquire == VK_SUBOPTIMAL_KHR))) {
VK_CHECK_RESULT(acquire);
}
// Use a fence to wait until the command buffer has finished execution before using it again
VK_CHECK_RESULT(vkWaitForFences(device, 1, &waitFences[currentBuffer], VK_TRUE, UINT64_MAX));