Skip to content

Commit

Permalink
(fix): Correct blur de-jitter
Browse files Browse the repository at this point in the history
  • Loading branch information
hyblocker committed Oct 6, 2024
1 parent 2f7f963 commit 353a818
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Backends/RmlUi_Renderer_DX11.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2615,9 +2615,9 @@ void RenderInterface_DX11::RenderBlur(float sigma, const Gfx::RenderTargetData&
// next power-of-two size and then downsample and blur that.

// We need to flip the scissor rect to have it match DX11 coords
const Rml::Vector2i target_min = scissor.p0 * (1 << pass_level);
const Rml::Vector2i target_max = scissor.p1 * (1 << pass_level);
if (target_min != dst_min || target_max != dst_max)
const Rml::Vector2i target_min = src_min * (1 << pass_level);
const Rml::Vector2i target_max = src_max * (1 << pass_level);
if (target_min != window_flipped.p0 || target_max != window_flipped.p1)
{
window_flipped_twice = VerticallyFlipped(scissor, m_viewport_height);
const Rml::Vector2i target_min_blit = window_flipped_twice.p0 * (1 << pass_level);
Expand Down

0 comments on commit 353a818

Please sign in to comment.