mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-19 04:52:12 +01:00
LP-32 fix build failure with older osg versions
This commit is contained in:
parent
79764f7392
commit
86a09ab03b
@ -404,10 +404,12 @@ private:
|
||||
camera->releaseGLObjects(gc->getState());
|
||||
}
|
||||
}
|
||||
#if OSG_VERSION_GREATER_OR_EQUAL(3, 5, 0)
|
||||
gc->getState()->releaseGLObjects();
|
||||
osg::deleteAllGLObjects(gc->getState()->getContextID());
|
||||
osg::flushAllDeletedGLObjects(gc->getState()->getContextID());
|
||||
osg::discardAllGLObjects(gc->getState()->getContextID());
|
||||
#endif
|
||||
}
|
||||
|
||||
void createViewer()
|
||||
@ -502,7 +504,6 @@ private:
|
||||
// if (traits->displayNum < 0) {
|
||||
// traits->displayNum = 0;
|
||||
// }
|
||||
traits->windowingSystemPreference = "QT";
|
||||
|
||||
#if OSG_VERSION_GREATER_OR_EQUAL(3, 5, 3)
|
||||
// The MyQt windowing system is registered in osgearth.cpp
|
||||
|
Loading…
x
Reference in New Issue
Block a user