summaryrefslogtreecommitdiffstats
path: root/ui/gl/gl_surface_win.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ui/gl/gl_surface_win.cc')
-rw-r--r--ui/gl/gl_surface_win.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/ui/gl/gl_surface_win.cc b/ui/gl/gl_surface_win.cc
index eb99421e..c0a223b 100644
--- a/ui/gl/gl_surface_win.cc
+++ b/ui/gl/gl_surface_win.cc
@@ -295,8 +295,7 @@ scoped_refptr<GLSurface> GLSurface::CreateOffscreenGLSurface(
}
EGLNativeDisplayType GetPlatformDefaultEGLNativeDisplay() {
- if (!CommandLine::ForCurrentProcess()->HasSwitch(switches::kDisableD3D11) &&
- CommandLine::ForCurrentProcess()->HasSwitch(switches::kEnableD3D11))
+ if (!CommandLine::ForCurrentProcess()->HasSwitch(switches::kDisableD3D11))
return EGL_D3D11_ELSE_D3D9_DISPLAY_ANGLE;
return EGL_DEFAULT_DISPLAY;