[ANGLE] Re-enable ANGLE's "force context check" build flag (flutter/engine#37055)
In [angle@54dfb62](54dfb62c24), ANGLE made the "force context check" flag off by default [to improve performance](https://chromium-review.googlesource.com/c/angle/angle/+/2809855). Disabling this flag uncovered several bugs in ANGLE's D3D11 renderer that can cause [Flutter 3.3.0+ to crash](https://github.com/flutter/flutter/issues/110311). This change re-enables the "force context check" flag, bringing Flutter back to the last known good state used by Flutter 3.0.5 and earlier.
Fixes https://github.com/flutter/flutter/issues/110311
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user