Skip to content

Commit

Permalink
Capabilities: print out osg and gdal versions
Browse files Browse the repository at this point in the history
  • Loading branch information
gwaldron committed Feb 5, 2019
1 parent 4f5ae23 commit 3b9689f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/osgEarth/Capabilities.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@
#include <osgEarth/Version>
#include <osg/FragmentProgram>
#include <osg/GL2Extensions>
#include <osg/Version>
#include <osgViewer/Version>
#include <gdal_priv.h>

using namespace osgEarth;

Expand Down Expand Up @@ -182,6 +184,12 @@ _isCoreProfile ( true )
const osg::GL2Extensions* GL2 = osg::GL2Extensions::Get( id, true );

OE_INFO << LC << "osgEarth Version: " << osgEarthGetVersion() << std::endl;

OE_INFO << LC << "OSG Version: " << osgGetVersion() << std::endl;

#ifdef GDAL_RELEASE_NAME
OE_INFO << LC << "GDAL Version: " << GDAL_RELEASE_NAME << std::endl;
#endif

if ( ::getenv("OSGEARTH_NO_GLSL") )
{
Expand Down

0 comments on commit 3b9689f

Please sign in to comment.