-
-
Notifications
You must be signed in to change notification settings - Fork 163
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
flutter-pi: make context current for engine run
FlutterEngineRunInitialized resolves the GL procs in the same thread when using impeller, so an EGL context needs to be current. Make the setup context current for the duration of FlutterEngineRunInitialized. Also, this means that we can't use the setup context in the `on_make_current` callback anymore, since that's called on the rasterizer thread, possibly while `FlutterEngineRunInitialized` is still running. Just use the rendering context there. (No real reason to use the setup context anyway)
- Loading branch information
Showing
1 changed file
with
37 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters