Skip to content

Commit 5cf7c39

Browse files
author
George Wright
authored
Remove D3D9 fallback path (flutter#29533)
1 parent 4684d23 commit 5cf7c39

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

shell/platform/windows/angle_surface_manager.cc

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -122,20 +122,10 @@ bool AngleSurfaceManager::Initialize() {
122122
EGL_NONE,
123123
};
124124

125-
// These are used to request ANGLE's D3D9 renderer as a fallback if D3D11
126-
// is not available.
127-
const EGLint d3d9_display_attributes[] = {
128-
EGL_PLATFORM_ANGLE_TYPE_ANGLE,
129-
EGL_PLATFORM_ANGLE_TYPE_D3D9_ANGLE,
130-
EGL_TRUE,
131-
EGL_NONE,
132-
};
133-
134125
std::vector<const EGLint*> display_attributes_configs = {
135126
d3d11_display_attributes,
136127
d3d11_fl_9_3_display_attributes,
137128
d3d11_warp_display_attributes,
138-
d3d9_display_attributes,
139129
};
140130

141131
PFNEGLGETPLATFORMDISPLAYEXTPROC egl_get_platform_display_EXT =
@@ -147,7 +137,7 @@ bool AngleSurfaceManager::Initialize() {
147137
}
148138

149139
// Attempt to initialize ANGLE's renderer in order of: D3D11, D3D11 Feature
150-
// Level 9_3, D3D11 WARP and finally D3D9.
140+
// Level 9_3 and finally D3D11 WARP.
151141
for (auto config : display_attributes_configs) {
152142
bool should_log = (config == display_attributes_configs.back());
153143
if (InitializeEGL(egl_get_platform_display_EXT, config, should_log)) {

0 commit comments

Comments
 (0)