1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-12-01 16:24:12 +01:00

[d3d9] Fix sampler decision at Present time

This commit is contained in:
Joshua Ashton 2020-02-27 22:54:43 +00:00
parent b6e1da916a
commit 33f6add0ff

View File

@ -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);