From 3493d738caef38e00acb855c096f2a414d17efec Mon Sep 17 00:00:00 2001 From: Stenzek Date: Fri, 11 May 2018 00:32:39 +1000 Subject: D3D/Vulkan: Fix incorrect clamp in EFB RAM copy This could cause darker-than-expected EFB copies if clamping was not enabled, and the user forced EFB copies to RAM only. --- Source/Core/VideoBackends/Vulkan/TextureConverter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Source/Core/VideoBackends/Vulkan/TextureConverter.cpp') diff --git a/Source/Core/VideoBackends/Vulkan/TextureConverter.cpp b/Source/Core/VideoBackends/Vulkan/TextureConverter.cpp index cf5d7075f7..496a600f7b 100644 --- a/Source/Core/VideoBackends/Vulkan/TextureConverter.cpp +++ b/Source/Core/VideoBackends/Vulkan/TextureConverter.cpp @@ -245,7 +245,7 @@ void TextureConverter::EncodeTextureToMemory( encoder_params.y_scale = y_scale; encoder_params.gamma_rcp = 1.0f / gamma; encoder_params.clamp_top = clamp_top ? src_rect.top / float(EFB_HEIGHT) : 0.0f; - encoder_params.clamp_bottom = clamp_bottom ? src_rect.bottom / float(EFB_HEIGHT) : 0.0f; + encoder_params.clamp_bottom = clamp_bottom ? src_rect.bottom / float(EFB_HEIGHT) : 1.0f; for (size_t i = 0; i < filter_coefficients.size(); i++) encoder_params.filter_coefficients[i] = filter_coefficients[i]; u8* ubo_ptr = draw.AllocatePSUniforms(sizeof(EFBEncodeParams)); -- cgit v1.2.3