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/OgreKdTreeSceneManager.cpp

    r1221 r1232  
    11091109} 
    11101110//----------------------------------------------------------------------- 
    1111 const Pass *KdTreeSceneManager::_setPass(Pass* pass, bool evenIfSuppressed) 
     1111const Pass *KdTreeSceneManager::_setPass(const Pass* pass, bool evenIfSuppressed) 
    11121112{ 
    11131113        if (mRenderMethod == KdTree::KDRM_INTERNAL) 
     
    11221122        const bool useDepthPass =  
    11231123                (mIsDepthPassPhase && !mHierarchyInterface->IsBoundingBoxQuery()); 
    1124  
    1125         Pass *usedPass = useDepthPass ? mDepthPass : pass; 
    1126  
    11271124 
    11281125        const IlluminationRenderStage savedStage = mIlluminationStage;  
     
    11581155        } 
    11591156 
     1157        const Pass *usedPass = useDepthPass ? mDepthPass : pass; 
     1158 
    11601159        // save old depth write: needed for item buffer 
    11611160        const bool IsDepthWrite = usedPass->getDepthWriteEnabled(); 
     
    11641163        if (!mEnableDepthWrite) 
    11651164        { 
    1166                 usedPass->setDepthWriteEnabled(false); 
     1165        //      usedPass->setDepthWriteEnabled(false); 
    11671166        } 
    11681167        //else if (mIsItemBufferPass) {usedPass = mItemBufferPass;} 
     
    11761175        if (!mEnableDepthWrite) 
    11771176        { 
    1178                 usedPass->setDepthWriteEnabled(IsDepthWrite); 
     1177        //      usedPass->setDepthWriteEnabled(IsDepthWrite); 
    11791178        } 
    11801179 
Note: See TracChangeset for help on using the changeset viewer.