Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(341)

Unified Diff: ui/gfx/gl/gl_surface_glx.cc

Issue 6969002: Workaround for open source drivers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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(),
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698