| Index: ui/gl/gl_surface_egl.cc
|
| diff --git a/ui/gl/gl_surface_egl.cc b/ui/gl/gl_surface_egl.cc
|
| index c17892fb1274eadae8dcf0db4a6076173e38b328..1d92d67a32bff3c985349b47ad99aec167a24bc4 100644
|
| --- a/ui/gl/gl_surface_egl.cc
|
| +++ b/ui/gl/gl_surface_egl.cc
|
| @@ -654,8 +654,10 @@ EGLDisplay GLSurfaceEGL::InitializeDisplay(
|
| }
|
|
|
| // Init ANGLE platform now that we have the global display.
|
| - if (!InitializeANGLEPlatform(display)) {
|
| - LOG(ERROR) << "ANGLE Platform initialization failed.";
|
| + if (supports_angle_d3d || supports_angle_opengl || supports_angle_null) {
|
| + if (!InitializeANGLEPlatform(display)) {
|
| + LOG(ERROR) << "ANGLE Platform initialization failed.";
|
| + }
|
| }
|
|
|
| if (!eglInitialize(display, nullptr, nullptr)) {
|
|
|