From 3bf9ab10980e93a77a119441a0df81a46a5f2f04 Mon Sep 17 00:00:00 2001 From: timoore Date: Mon, 13 Aug 2007 15:02:42 +0000 Subject: [PATCH] Fix test for osg::Viewer.setUpdateVisitor My last attempt reversed the sense of the test and for to include the osg/Version header file. --- src/Main/renderer.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Main/renderer.cxx b/src/Main/renderer.cxx index 3a7b944c4..bbb7557e2 100644 --- a/src/Main/renderer.cxx +++ b/src/Main/renderer.cxx @@ -49,6 +49,7 @@ #include #include #include +#include #include #include @@ -102,8 +103,8 @@ #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 -- 2.39.5