[d3d9] Call endFrame at the end of each frame

This commit is contained in:
Philip Rebohle 2022-06-22 00:39:19 +02:00
parent 5610b3a742
commit acf70501d2
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99
3 changed files with 10 additions and 0 deletions

View File

@ -5241,6 +5241,13 @@ namespace dxvk {
}
void D3D9DeviceEx::EndFrame() {
EmitCs([] (DxvkContext* ctx) {
ctx->endFrame();
});
}
inline void D3D9DeviceEx::UpdateBoundRTs(uint32_t index) {
const uint32_t bit = 1 << index;

View File

@ -747,6 +747,8 @@ namespace dxvk {
void Flush();
void EndFrame();
void UpdateBoundRTs(uint32_t index);
void UpdateActiveRTs(uint32_t index);

View File

@ -809,6 +809,7 @@ namespace dxvk {
void D3D9SwapChainEx::PresentImage(UINT SyncInterval) {
m_parent->EndFrame();
m_parent->Flush();
// Retrieve the image and image view to present