Show
Ignore:
Timestamp:
02/04/08 14:46:15 (1 year ago)
Author:
cneumann
Message:

added: MT unittest
fixed: Material: sync internal State

SimpleMaterial?: sync internal StateChunks?

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/Carsten_PtrWork2/Source/System/Material/Base/OSGMaterial.cpp

    r1039 r1057  
    105105} 
    106106 
     107void Material::execSyncV(FieldContainer    &oFrom, 
     108                         ConstFieldMaskArg  whichField, 
     109                         AspectOffsetStore &oOffsets, 
     110                         ConstFieldMaskArg  syncMode, 
     111                         UInt32 const       uiSyncInfo) 
     112{ 
     113    this->execSync(static_cast<Material *>(&oFrom), 
     114                   whichField, oOffsets, syncMode, uiSyncInfo); 
     115} 
     116 
    107117void Material::resolveLinks(void) 
    108118{ 
     119    FDEBUG(("Material::resolveLinks\n")); 
     120 
    109121    Inherited::resolveLinks(); 
    110122 
    111     _pState = NullFC; 
     123    FDEBUG(("Material::resolveLinks: Material::_pState: [%p] [%d] [%d %d %d]\n", 
     124        _pState.get(), _pState != NullFC ? getContainerId(_pState) : 0, 
     125        _pState != NullFC ? _pState->getExternalRefCount() : -1,  
     126        _pState != NullFC ? _pState->getRefCount() : -1,  
     127        _pState != NullFC ? _pState->getWeakRefCount() : -1)); 
     128     
     129    _pState.set(NullFC); 
    112130} 
    113131