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:
parent
1f7196f5b8
commit
81c7b7034c
@ -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));
|
||||
|
Loading…
x
Reference in New Issue
Block a user