diff --git a/engine/src/flutter/tools/gn b/engine/src/flutter/tools/gn index b4fcbe0b03..b41036145c 100755 --- a/engine/src/flutter/tools/gn +++ b/engine/src/flutter/tools/gn @@ -554,6 +554,11 @@ def to_gn_args(args): get_host_os() == 'win'): # Do not build unnecessary parts of the ANGLE tree. gn_args['angle_build_all'] = False + # Force ANGLE context checks on Windows to prevent crashes. + # TODO(loic-sharma): Remove this once ANGLE crashes have been fixed. + # https://github.com/flutter/flutter/issues/114107 + if get_host_os() == 'win': + gn_args['angle_force_context_check_every_call'] = True # Requires RTTI. We may want to build this in debug modes, punting on that # for now. gn_args['angle_enable_vulkan_validation_layers'] = False