From 5107cc813fb574db67ae263c977da61685857c9c Mon Sep 17 00:00:00 2001 From: Jason Simmons Date: Fri, 29 May 2026 21:01:25 +0000 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 (#187247) 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/material_ui/lib/src/shaders/stretch_effect.frag | 4 ---- 1 file changed, 4 deletions(-) diff --git a/packages/material_ui/lib/src/shaders/stretch_effect.frag b/packages/material_ui/lib/src/shaders/stretch_effect.frag index dbcca2e91e60..4819bc3be310 100644 --- a/packages/material_ui/lib/src/shaders/stretch_effect.frag +++ b/packages/material_ui/lib/src/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); }