From 7230d54011b1a1a412f1c62c497d2a22027fe1f2 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Tue, 27 May 2008 11:13:16 +0000 Subject: [PATCH] From Mathias Froehlich, "Included a fix for my past pbuffer change. The version test fo 'need at least glx 1.1' was broken, even if no implementation had yet a chance to trigger that :) Attached a fix for that broken test. Based on rev 8358" --- src/osgViewer/PixelBufferX11.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osgViewer/PixelBufferX11.cpp b/src/osgViewer/PixelBufferX11.cpp index 4ed82e916..543bc49ea 100644 --- a/src/osgViewer/PixelBufferX11.cpp +++ b/src/osgViewer/PixelBufferX11.cpp @@ -157,7 +157,7 @@ void PixelBufferX11::init() } // Just be paranoid, if we are older than 1.1, we cannot even call glxQueryExtensionString - if (1 < major || (1 == major && minor < 1)) + if (major < 1 || (1 == major && minor < 1)) { osg::notify(osg::NOTICE) << "Error: " << XDisplayName(_traits->displayName().c_str()) << " GLX version " << major << "." << minor << " is too old." << std::endl;