From 21a78f9858e54745752c5ad6d4189c69c6f09a84 Mon Sep 17 00:00:00 2001 From: Victoria Brekenfeld Date: Mon, 17 Jan 2022 21:15:59 +0100 Subject: [PATCH] gles: Don't apply output transformations to buffer damage --- src/backend/renderer/gles2/mod.rs | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/backend/renderer/gles2/mod.rs b/src/backend/renderer/gles2/mod.rs index 7026569..9df9829 100644 --- a/src/backend/renderer/gles2/mod.rs +++ b/src/backend/renderer/gles2/mod.rs @@ -1301,13 +1301,11 @@ impl Frame for Gles2Frame { .clamp((0f64, 0f64), (src.to_point() - rect_constrained_loc).to_size()); let rect = Rectangle::from_loc_and_size(rect_constrained_loc, rect_clamped_size); - let rect_transformed = self.transformation().transform_rect_in(rect, &src); - [ - (rect_transformed.loc.x / src.w) as f32, - (rect_transformed.loc.y / src.h) as f32, - (rect_transformed.size.w / src.w) as f32, - (rect_transformed.size.h / src.h) as f32, + (rect.loc.x / src.w) as f32, + (rect.loc.y / src.h) as f32, + (rect.size.w / src.w) as f32, + (rect.size.h / src.h) as f32, ] }) .flatten()