1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-11-29 10:24:10 +01:00

[d3d9] Bump frame id before presentation

This commit is contained in:
Joshua Ashton 2021-06-01 17:24:58 +01:00 committed by Philip Rebohle
parent e64a8ee61a
commit 747834e9b0

View File

@ -778,6 +778,9 @@ namespace dxvk {
auto swapImage = m_backBuffers[0]->GetCommonTexture()->GetImage();
auto swapImageView = m_backBuffers[0]->GetImageView(false);
// Bump our frame id.
++m_frameId;
for (uint32_t i = 0; i < SyncInterval || i < 1; i++) {
SynchronizePresent();
@ -820,9 +823,6 @@ namespace dxvk {
SubmitPresent(sync, i);
}
// Bump our frame id.
++m_frameId;
SyncFrameLatency();
// Rotate swap chain buffers so that the back