Changeset 344 for trunk


Ignore:
Timestamp:
02/18/10 13:40:04 (2 years ago)
Author:
tholt
Message:

Make AVANGO compile with OSG 2.6

Location:
trunk/avango-osg
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/avango-osg/python/avango/osg/OSGCameraAttachment.cpp

    r299 r344  
    6262    .value("DEPTH_BUFFER", ::osg::Camera::DEPTH_BUFFER) 
    6363    .value("STENCIL_BUFFER", ::osg::Camera::STENCIL_BUFFER) 
     64#if OPENSCENEGRAPH_MAJOR_VERSION >= 2 && OPENSCENEGRAPH_MINOR_VERSION >= 8 
    6465    .value("PACKED_DEPTH_STENCIL_BUFFER", ::osg::Camera::PACKED_DEPTH_STENCIL_BUFFER) 
     66#endif 
    6567    .value("COLOR_BUFFER", ::osg::Camera::COLOR_BUFFER) 
    6668    .value("COLOR_BUFFER0", ::osg::Camera::COLOR_BUFFER0) 
  • trunk/avango-osg/src/avango/osg/Camera.cpp

    r335 r344  
    199199    a->BufferComponent.setValue(i->first); 
    200200    a->InternalFormat.setValue(i->second._internalFormat); 
    201     if (i->second._texture) 
     201    if (i->second._texture.valid()) 
    202202    { 
    203203      Texture* texture = dynamic_cast<Texture*>(i->second._texture->getUserData()); 
    204204      if (texture) a->Texture.setValue(texture); 
    205205    } 
    206     if (i->second._image) 
     206    if (i->second._image.valid()) 
    207207    { 
    208208      Image* image = dynamic_cast<Image*>(i->second._image->getUserData()); 
Note: See TracChangeset for help on using the changeset viewer.