1
0
mirror of https://github.com/Yours3lf/rpi-vk-driver.git synced 2025-01-19 11:52:16 +01:00

actually use the indices the user requested

This commit is contained in:
yours3lf 2020-05-19 22:30:42 +01:00
parent 1f7196f5b8
commit 81c7b7034c

View File

@ -636,8 +636,8 @@ VKAPI_ATTR VkResult VKAPI_CALL RPIFUNC(vkQueuePresentKHR)(
for(int c = 0; c < pPresentInfo->swapchainCount; ++c)
{
_swapchain* s = pPresentInfo->pSwapchains[c];
modeset_present(controlFd, &s->images[s->backbufferIdx], s->surface);
s->backbufferIdx = (s->backbufferIdx + 1) % s->numImages;
modeset_present(controlFd, &s->images[pPresentInfo->pImageIndices[c]], s->surface);
s->backbufferIdx = (pPresentInfo->pImageIndices[c] + 1) % s->numImages;
}
PROFILEEND(RPIFUNC(vkQueuePresentKHR));