mirror of
https://github.com/doitsujin/dxvk.git
synced 2024-12-14 00:48:44 +01:00
[d3d9] Call endFrame at the end of each frame
This commit is contained in:
parent
5610b3a742
commit
acf70501d2
@ -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;
|
||||
|
||||
|
@ -747,6 +747,8 @@ namespace dxvk {
|
||||
|
||||
void Flush();
|
||||
|
||||
void EndFrame();
|
||||
|
||||
void UpdateBoundRTs(uint32_t index);
|
||||
|
||||
void UpdateActiveRTs(uint32_t index);
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user