From 483a76f4110967843e3b172ad07a8d982f3f79f6 Mon Sep 17 00:00:00 2001 From: Jason Simmons Date: Thu, 28 May 2026 10:30:09 -0700 Subject: [PATCH] Remove the Y coordinate flip workaround in the Material stretch effect shader now that it is no longer required by the Impeller GLES back end https://github.com/flutter/flutter/pull/186556 makes the behavior of the Y axis in the GLES back end consistent with other Impeller back ends. Shaders will render incorrectly if they continue to flip the Y axis based on "#ifdef IMPELLER_TARGET_OPENGLES". --- packages/flutter/lib/src/material/shaders/stretch_effect.frag | 4 ---- 1 file changed, 4 deletions(-) diff --git a/packages/flutter/lib/src/material/shaders/stretch_effect.frag b/packages/flutter/lib/src/material/shaders/stretch_effect.frag index 53be5a6971e1c..8d2d7a3a95603 100644 --- a/packages/flutter/lib/src/material/shaders/stretch_effect.frag +++ b/packages/flutter/lib/src/material/shaders/stretch_effect.frag @@ -149,11 +149,7 @@ void main() { ) : in_v_norm; uv.x = out_u_norm; - #ifdef IMPELLER_TARGET_OPENGLES - uv.y = 1.0 - out_v_norm; - #else uv.y = out_v_norm; - #endif frag_color = texture(u_texture, uv); }