mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Original PR: https://github.com/flutter/engine/pull/41374 This was reverted because it broke on simulators as they do not support linear textures. To fix this, I've ifdef'd out the DeviceBufferMTL implementation of AsTexture so that it falls back to the slow path copy. Also updated the capabilities check so that the glyph atlas updates the texture contents when it changes.