From b839bffe251d1773130be08836490c1fd6a5ba9e Mon Sep 17 00:00:00 2001 From: Hyblocker Date: Fri, 4 Oct 2024 13:07:24 +0200 Subject: [PATCH] (fix): Fix blur flipping image on large kernels --- Backends/RmlUi_Renderer_DX11.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Backends/RmlUi_Renderer_DX11.cpp b/Backends/RmlUi_Renderer_DX11.cpp index 87da7c405..e18f340cd 100644 --- a/Backends/RmlUi_Renderer_DX11.cpp +++ b/Backends/RmlUi_Renderer_DX11.cpp @@ -2557,7 +2557,8 @@ void RenderInterface_DX11::RenderBlur(float sigma, const Gfx::RenderTargetData& const Rml::Vector2i target_max = src_max * (1 << pass_level); if (target_min != dst_min || target_max != dst_max) { - BlitRenderTarget(temp, source_destination, src_min.x, src_min.y, src_max.x, src_max.y, target_min.x, target_min.y, target_max.x, target_max.y); + BlitRenderTarget(temp, source_destination, src_min.x, src_max.y, src_max.x, src_min.y, target_min.x, target_min.y, target_max.x, + target_max.y); } // Restore render state.