From 903f1af1764bf7329d4893bf914c76082a811d43 Mon Sep 17 00:00:00 2001 From: Robin Kertels Date: Thu, 12 Sep 2024 15:27:31 +0200 Subject: [PATCH] [d3d9] Fix PresentGDI --- src/d3d9/d3d9_swapchain.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/d3d9/d3d9_swapchain.cpp b/src/d3d9/d3d9_swapchain.cpp index 76ba168db..4ee347c2e 100644 --- a/src/d3d9/d3d9_swapchain.cpp +++ b/src/d3d9/d3d9_swapchain.cpp @@ -1041,7 +1041,9 @@ namespace dxvk { desc.Discard = FALSE; desc.IsBackBuffer = TRUE; desc.IsAttachmentOnly = FALSE; - desc.IsLockable = (Flags & D3DPRESENTFLAG_LOCKABLE_BACKBUFFER) != 0; + // we cannot respect D3DPRESENTFLAG_LOCKABLE_BACKBUFFER here because + // we might need to lock for the BlitGDI fallback path + desc.IsLockable = true; for (uint32_t i = 0; i < NumBuffers; i++) { D3D9Surface* surface;