From 3648f61d314d9ad09cb22bf9405b8dc7b2e77bfb Mon Sep 17 00:00:00 2001 From: "apatrick@chromium.org" Date: Fri, 28 May 2010 23:12:42 +0000 Subject: Added warning if GLX version is less than 1.3. Pbuffers need GLX 1.3 and the pixmap fallback for 1.2 does not work on all systems. TEST=try BUG=none Review URL: http://codereview.chromium.org/2382002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@48538 0039d316-1c4b-4281-b951-d872f2087c98 --- app/gfx/gl/gl_context_linux.cc | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'app/gfx') diff --git a/app/gfx/gl/gl_context_linux.cc b/app/gfx/gl/gl_context_linux.cc index 8e5c360..77d6573 100644 --- a/app/gfx/gl/gl_context_linux.cc +++ b/app/gfx/gl/gl_context_linux.cc @@ -149,6 +149,16 @@ static bool InitializeOneOff() { LOG(ERROR) << "glxewContextInit failed"; return false; } + + int major, minor; + if (!glXQueryVersion(display, &major, &minor)) { + LOG(ERROR) << "glxQueryVersion failed"; + return false; + } + + if (major == 1 && minor < 3) { + LOG(WARNING) << "GLX 1.3 or later is recommended."; + } } initialized = true; -- cgit v1.1