Index: ui/gfx/gl/gl_surface_glx.cc |
diff --git a/ui/gfx/gl/gl_surface_glx.cc b/ui/gfx/gl/gl_surface_glx.cc |
index d9b39d4d2965e1d9e0b7e978c3c65eaf1ff657c4..4f337204789e8974bb01e9884410ed9e7fa685d1 100644 |
--- a/ui/gfx/gl/gl_surface_glx.cc |
+++ b/ui/gfx/gl/gl_surface_glx.cc |
@@ -107,9 +107,10 @@ bool NativeViewGLSurfaceGLX::Initialize() { |
config_ = glXGetFBConfigFromVisualSGIX(g_display, visual_infos.get()); |
if (!config_) { |
LOG(ERROR) << "glXGetFBConfigFromVisualSGIX failed."; |
- return false; |
} |
- } else { |
+ } |
+ |
+ if (!config_) { |
int config_id; |
if (glXGetConfig(g_display, |
visual_infos.get(), |