diff options
| author | Tilka <tilkax@gmail.com> | 2019-02-28 11:02:32 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-02-28 11:02:32 +0000 |
| commit | f220dc7432ee8837fd0447c712b053e6ec987b19 (patch) | |
| tree | 7539b0dc9e7de9ec1703af474beea7297958d50a /Source/Core/VideoCommon/TextureCacheBase.cpp | |
| parent | 902e407ae5eb39e03b127e9fd58f4a8193cd2ab8 (diff) | |
| parent | 7f0111b02265dbd762364e9995cd1980a0d5fadd (diff) | |
Merge pull request #7831 from stenzek/efb2ram-ir-regression
TextureCache: Fix EFB2RAM copies at >1xIR sampling out-of-range
Diffstat (limited to 'Source/Core/VideoCommon/TextureCacheBase.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/TextureCacheBase.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/VideoCommon/TextureCacheBase.cpp b/Source/Core/VideoCommon/TextureCacheBase.cpp index 3beaeedbf8..2e57aa2dc5 100644 --- a/Source/Core/VideoCommon/TextureCacheBase.cpp +++ b/Source/Core/VideoCommon/TextureCacheBase.cpp @@ -2389,8 +2389,8 @@ void TextureCacheBase::CopyEFB(AbstractStagingTexture* dst, const EFBCopyParams& const auto framebuffer_rect = g_renderer->ConvertFramebufferRectangle( scaled_src_rect, g_framebuffer_manager->GetEFBFramebuffer()); const float rcp_efb_height = 1.0f / static_cast<float>(g_framebuffer_manager->GetEFBHeight()); - encoder_params.position_uniform[0] = scaled_src_rect.left; - encoder_params.position_uniform[1] = scaled_src_rect.top; + encoder_params.position_uniform[0] = src_rect.left; + encoder_params.position_uniform[1] = src_rect.top; encoder_params.position_uniform[2] = static_cast<s32>(native_width); encoder_params.position_uniform[3] = scale_by_half ? 2 : 1; encoder_params.y_scale = y_scale; |
