From 708ce25cb00eb77888c1b90c1f822220685deb36 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Thu, 14 Nov 2019 22:24:47 +1000 Subject: [PATCH] GPU/HW: Fix resolution changing while running corrupting screen --- src/core/gpu_hw_d3d11.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/core/gpu_hw_d3d11.cpp b/src/core/gpu_hw_d3d11.cpp index 4b48bed07..1ae4c155d 100644 --- a/src/core/gpu_hw_d3d11.cpp +++ b/src/core/gpu_hw_d3d11.cpp @@ -435,6 +435,8 @@ void GPU_HW_D3D11::BlitTexture(ID3D11RenderTargetView* dst, u32 dst_x, u32 dst_y m_context->OMSetRenderTargets(1, &dst, nullptr); m_context->PSSetShaderResources(0, 1, &src); + m_context->PSSetSamplers( + 0, 1, linear_filter ? m_linear_sampler_state.GetAddressOf() : m_point_sampler_state.GetAddressOf()); SetViewport(dst_x, dst_y, dst_width, dst_height); SetScissor(dst_x, dst_y, dst_width, dst_height); DrawUtilityShader(m_copy_pixel_shader.Get(), uniforms, sizeof(uniforms));