Changeset 19804

Show
Ignore:
Timestamp:
02/08/07 11:15:44 (2 years ago)
Author:
dshipton
Message:

OpenSG2 uses Thread::getCurrentAspect() instead of getAspect() so recognize when

we are compiling against OpenSG2 and act accordingly. This may not be needed i

n the future when OpenSG2 is used and built with OSG_1_COMPAT, but this change w
ill be more reliable for all OpenSG2 builds.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • juggler/trunk/modules/vrjuggler/vrj/Draw/OpenSG/OpenSGApp.h

    r19798 r19804  
    174174#endif 
    175175 
     176#if OSG_MAJOR_VERSION >= 2 
     177   OSG_MAIN_ASPECT_ID = OSG::Thread::getCurrentAspect();   // Gets the base aspect id to use 
     178#else 
    176179   OSG_MAIN_ASPECT_ID = OSG::Thread::getAspect();   // Gets the base aspect id to use 
     180#endif 
    177181} 
    178182