From 33f6add0ffbb29207974716807193ab694d706d3 Mon Sep 17 00:00:00 2001 From: Joshua Ashton Date: Thu, 27 Feb 2020 22:54:43 +0000 Subject: [PATCH] [d3d9] Fix sampler decision at Present time --- src/d3d9/d3d9_swapchain.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/d3d9/d3d9_swapchain.cpp b/src/d3d9/d3d9_swapchain.cpp index d69fc50b..4dd768e2 100644 --- a/src/d3d9/d3d9_swapchain.cpp +++ b/src/d3d9/d3d9_swapchain.cpp @@ -705,8 +705,8 @@ namespace dxvk { // Use an appropriate texture filter depending on whether // the back buffer size matches the swap image size - bool fitSize = swapImage->info().extent.width == info.imageExtent.width - && swapImage->info().extent.height == info.imageExtent.height; + bool fitSize = m_dstRect.right - m_dstRect.left == m_srcRect.right - m_srcRect.left + && m_dstRect.bottom - m_dstRect.top == m_srcRect.bottom - m_srcRect.top; D3D9PresentInfo presentInfoConsts; presentInfoConsts.scale[0] = float(m_srcRect.right - m_srcRect.left) / float(swapImage->info().extent.width);