]> git.mxchange.org Git - flightgear.git/commitdiff
Fix test for osg::Viewer.setUpdateVisitor
authortimoore <timoore>
Mon, 13 Aug 2007 15:02:42 +0000 (15:02 +0000)
committertimoore <timoore>
Mon, 13 Aug 2007 15:02:42 +0000 (15:02 +0000)
My last attempt reversed the sense of the test and for to include the
osg/Version header file.

src/Main/renderer.cxx

index 3a7b944c49c7a09ac77261edc2c16d6bdcd7cbfd..bbb7557e2e99f352ed3ab0d138176d36133d5d77 100644 (file)
@@ -49,6 +49,7 @@
 #include <osg/PolygonMode>
 #include <osg/PolygonOffset>
 #include <osg/ShadeModel>
+#include <osg/Version>
 #include <osg/TexEnv>
 
 #include <osgUtil/SceneView>
 #include "main.hxx"
 
 // XXX Make this go away when OSG 2.2 is released.
-#if ((2 >= OSG_VERSION_MAJOR) && (1 >= OSG_VERSION_MINOR) \
-     && (4 >= OSG_VERSION_PATCH))
+#if ((2 <= OSG_VERSION_MAJOR) && (1 <= OSG_VERSION_MINOR) \
+     && (4 <= OSG_VERSION_PATCH))
 #define UPDATE_VISITOR_IN_VIEWER 1
 #endif