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

Unified Diff: ui/gl/gl_context_glx.cc

Issue 2347383002: X11: Use better visuals for OpenGL (Closed)
Patch Set: Fix various tests Created 4 years, 3 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
Index: ui/gl/gl_context_glx.cc
diff --git a/ui/gl/gl_context_glx.cc b/ui/gl/gl_context_glx.cc
index 4be08f647d685a15702562c46a9d101c32dc967d..874e71fc019fcac24667a1b410357b869d1d1bbf 100644
--- a/ui/gl/gl_context_glx.cc
+++ b/ui/gl/gl_context_glx.cc
@@ -166,6 +166,11 @@ bool GLContextGLX::Initialize(
GLXContext share_handle = static_cast<GLXContext>(
share_group() ? share_group()->GetHandle() : nullptr);
+ int fbconfigid = 0;
+ glXGetFBConfigAttrib(
+ display_, static_cast<GLXFBConfig>(compatible_surface->GetConfig()),
+ GLX_FBCONFIG_ID, &fbconfigid);
piman 2016/09/22 21:24:55 Is this used anywhere?
Tom (Use chromium acct) 2016/09/23 20:00:37 Removed. More leftover debugging..
+
if (GLSurfaceGLX::IsCreateContextSupported()) {
DVLOG(1) << "GLX_ARB_create_context supported.";
context_ = CreateHighestVersionContext(

Powered by Google App Engine
This is Rietveld 408576698