Show
Ignore:
Timestamp:
11/12/08 11:30:17 (5 years ago)
Author:
robert
Message:

Added osgViewerGetVersion() into context creation code as a means of forcing windows to link in osgViewer properly.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/examples/osgmemorytest/osgmemorytest.cpp

    r9149 r9154  
    1818 
    1919#include <osg/Notify> 
     20#include <osg/Timer> 
    2021#include <osg/ArgumentParser> 
    2122#include <osg/Texture1D> 
     
    2324#include <osg/Texture3D> 
    2425#include <osg/Geometry> 
    25  
    26 #include <osgViewer/Viewer> 
     26#include <osg/FrameBufferObject> 
     27 
     28#include <osgViewer/Version> 
    2729 
    2830#include <stdio.h> 
     
    8082            else 
    8183            { 
     84                std::cerr<<"Error: Unable to create graphis context, problem with running osgViewer-"<<osgViewerGetVersion()<<", cannot create windows/pbuffers."<<std::endl; 
     85                 
    8286                if (_pbuffer) throw "Failed to create PixelBuffer"; 
    8387                else  throw "Failed to create GraphicsWindow"; 
     
    418422    osg::Timer_t startTick = osg::Timer::instance()->tick(); 
    419423 
    420  
    421424    // use printf's below as C++'s ostream classes use more memory and are more likely to fail when everything 
    422425    // goes wrong with memory allocations.