Skip to content

Commit

Permalink
Merge pull request openscenegraph#15 from airscrat/master
Browse files Browse the repository at this point in the history
 Compatible with the new and old versions of OSG
  • Loading branch information
mathieu authored Apr 23, 2018
2 parents d9a9a14 + e2a349f commit 6d324db
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ ENDIF()

PROJECT(osgQt)

FIND_PACKAGE(OpenSceneGraph 3.5.6 REQUIRED osgDB osgGA osgUtil osgText osgViewer osgWidget)
FIND_PACKAGE(OpenSceneGraph 3.0.0 REQUIRED osgDB osgGA osgUtil osgText osgViewer osgWidget)
SET(OPENSCENEGRAPH_SOVERSION 145)

SET(OSG_PLUGINS osgPlugins-${OPENSCENEGRAPH_VERSION})
Expand Down
3 changes: 2 additions & 1 deletion include/osgQt/GraphicsWindowQt
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#include <QQueue>
#include <QSet>
#include <QGLWidget>
#include <osg/Version>

class QInputEvent;
class QGestureEvent;
Expand All @@ -36,7 +37,7 @@ namespace osgQt
// forward declarations
class GraphicsWindowQt;

#if 0
#if OSG_VERSION_LESS_THAN(3, 5, 6)
/// The function sets the WindowingSystem to Qt.
void OSGQT_EXPORT initQtWindowingSystem();
#endif
Expand Down
2 changes: 1 addition & 1 deletion src/osgQt/GraphicsWindowQt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -945,7 +945,7 @@ class QtWindowingSystem : public osg::GraphicsContext::WindowingSystemInterface
QtWindowingSystem& operator=( const QtWindowingSystem& );
};

#if 1
#if OSG_VERSION_GREATER_OR_EQUAL(3, 5, 6)
REGISTER_WINDOWINGSYSTEMINTERFACE(Qt, QtWindowingSystem)
#else

Expand Down

0 comments on commit 6d324db

Please sign in to comment.