diff options
author | apatrick@chromium.org <apatrick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-28 23:12:42 +0000 |
---|---|---|
committer | apatrick@chromium.org <apatrick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-28 23:12:42 +0000 |
commit | 3648f61d314d9ad09cb22bf9405b8dc7b2e77bfb (patch) | |
tree | c5f5f2968d956fcf5451b5bc5753bb3d74e85d31 /app | |
parent | a25741ace5c4fb0bf08744edc00313a55ec5e248 (diff) | |
download | chromium_src-3648f61d314d9ad09cb22bf9405b8dc7b2e77bfb.zip chromium_src-3648f61d314d9ad09cb22bf9405b8dc7b2e77bfb.tar.gz chromium_src-3648f61d314d9ad09cb22bf9405b8dc7b2e77bfb.tar.bz2 |
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
Diffstat (limited to 'app')
-rw-r--r-- | app/gfx/gl/gl_context_linux.cc | 10 |
1 files changed, 10 insertions, 0 deletions
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; |