From ce48b57f94722e9f9eb5156a5a5d367d0d73ada2 Mon Sep 17 00:00:00 2001 From: Robin Kertels Date: Sun, 10 Jul 2022 13:56:20 +0200 Subject: [PATCH] [d3d9] Allow POOL_SCRATCH targets in GetFrontBufferData --- src/d3d9/d3d9_swapchain.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/d3d9/d3d9_swapchain.cpp b/src/d3d9/d3d9_swapchain.cpp index 7fbf75a5e..07f8e5cd2 100644 --- a/src/d3d9/d3d9_swapchain.cpp +++ b/src/d3d9/d3d9_swapchain.cpp @@ -333,7 +333,7 @@ namespace dxvk { D3D9CommonTexture* dstTexInfo = dst->GetCommonTexture(); D3D9CommonTexture* srcTexInfo = m_backBuffers.back()->GetCommonTexture(); - if (unlikely(dstTexInfo->Desc()->Pool != D3DPOOL_SYSTEMMEM)) + if (unlikely(dstTexInfo->Desc()->Pool != D3DPOOL_SYSTEMMEM && dstTexInfo->Desc()->Pool != D3DPOOL_SCRATCH)) return D3DERR_INVALIDCALL; Rc dstBuffer = dstTexInfo->GetBuffer(dst->GetSubresource());