Repository: flutter
Issue: Custom Flutter embedder doesn't display text (or icons)
Labels: engine,d: examples,e: embedder,c: rendering,P2,team-engine,triaged-engine

Custom Flutter embedder doesn't display texts (tried both software rendering & OpenGL rendering).

## Steps to Reproduce

Clone
```
https://github.com/flutter/engine/tree/main/examples/glfw
```

Run it with a Flutter application that contains any text or icons.

**Flutter run**:
<img width="912" alt="Screenshot 2022-11-21 at 15 32 33" src="https://user-images.githubusercontent.com/13968468/203080790-f1f48200-d29b-4d9c-b1fc-4b18729c7341.png">

**Custom Embedder**:
<img width="912" alt="Screenshot 2022-11-21 at 15 32 57" src="https://user-images.githubusercontent.com/13968468/203080891-5d171b8a-a51f-4d7b-93ff-1d7146013264.png">


```dart

void main() => runApp(HelloWorld());

class HelloWorld extends StatelessWidget {
  const HelloWorld({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        body: Center(
          child: Container(color: Colors.red, width: 200, height: 200, child: Text('Hello, world!', style: TextStyle(color: Colors.black))),
        ),
        floatingActionButton: FloatingActionButton(
          onPressed: () {
          },
          child: const Icon(Icons.stop),
        ),
      ),
    );
  }
}
```

I'm running on an M1 with the Flutter application running as x86.

## Flutter version

```
[✓] Flutter (Channel stable, 3.3.2, on macOS 12.1 21C52 darwin-arm, locale en-DE)
    • Flutter version 3.3.2 on channel stable at /Users/norbertkozsir/fvm/versions/3.3.2
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision e3c29ec00c (10 weeks ago), 2022-09-14 08:46:55 -0500
    • Engine revision a4ff2c53d8
    • Dart version 2.18.1
    • DevTools version 2.15.0

[!] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at /Users/norbertkozsir/Library/Android/sdk
    ✗ cmdline-tools component is missing
      Run `path/to/sdkmanager --install "cmdline-tools;latest"`
      See https://developer.android.com/studio/command-line for more details.
    ✗ Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/docs/get-started/install/macos#android-setup for more details.

[✓] Xcode - develop for iOS and macOS (Xcode 13.4)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 13F17a
    • CocoaPods version 1.11.3

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 4.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)

[✓] IntelliJ IDEA Community Edition (version 2022.2.3)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin version 70.2.5
    • Dart plugin version 222.4345.14

[✓] VS Code (version 1.72.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.50.0

[✓] Connected device (2 available)
    • macOS (desktop) • macos  • darwin-arm64   • macOS 12.1 21C52 darwin-arm
    • Chrome (web)    • chrome • web-javascript • Google Chrome 107.0.5304.110

[✓] HTTP Host Availability
    • All required HTTP hosts are available

! Doctor found issues in 1 category.
```