Ignore:
Timestamp:
08/19/06 13:48:51 (18 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/src/OgreOcclusionCullingSceneManager.cpp

    r1221 r1232  
    207207} 
    208208//----------------------------------------------------------------------- 
    209 const Pass *OcclusionCullingSceneManager::_setPass(Pass* pass, bool evenIfSuppressed) 
     209const Pass *OcclusionCullingSceneManager::_setPass(const Pass* pass, bool evenIfSuppressed) 
    210210{ 
    211211        if (NORMAL_RENDER_HACK) 
     
    220220        const bool useDepthPass =  
    221221                (mIsDepthPassPhase && !mHierarchyInterface->IsBoundingBoxQuery()); 
    222  
    223         Pass *usedPass = useDepthPass ? mDepthPass : pass; 
    224                  
    225222 
    226223        const IlluminationRenderStage savedStage = mIlluminationStage;  
     
    256253        } 
    257254         
     255        const Pass *usedPass = useDepthPass ? mDepthPass : pass; 
     256 
    258257        // save old depth write: needed for item buffer 
    259258        const bool IsDepthWrite = usedPass->getDepthWriteEnabled(); 
     
    262261        if (!mEnableDepthWrite) 
    263262        { 
    264                 usedPass->setDepthWriteEnabled(false); 
     263                //usedPass->setDepthWriteEnabled(false); 
    265264        } 
    266265        //else if (mIsItemBufferPass) {usedPass = mItemBufferPass;} 
     
    274273        if (!mEnableDepthWrite) 
    275274        { 
    276                 usedPass->setDepthWriteEnabled(IsDepthWrite); 
     275                //usedPass->setDepthWriteEnabled(IsDepthWrite); 
    277276        } 
    278277 
Note: See TracChangeset for help on using the changeset viewer.