- Timestamp:
- 08/19/06 13:48:51 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/src/OgreOcclusionCullingSceneManager.cpp
r1221 r1232 207 207 } 208 208 //----------------------------------------------------------------------- 209 const Pass *OcclusionCullingSceneManager::_setPass( Pass* pass, bool evenIfSuppressed)209 const Pass *OcclusionCullingSceneManager::_setPass(const Pass* pass, bool evenIfSuppressed) 210 210 { 211 211 if (NORMAL_RENDER_HACK) … … 220 220 const bool useDepthPass = 221 221 (mIsDepthPassPhase && !mHierarchyInterface->IsBoundingBoxQuery()); 222 223 Pass *usedPass = useDepthPass ? mDepthPass : pass;224 225 222 226 223 const IlluminationRenderStage savedStage = mIlluminationStage; … … 256 253 } 257 254 255 const Pass *usedPass = useDepthPass ? mDepthPass : pass; 256 258 257 // save old depth write: needed for item buffer 259 258 const bool IsDepthWrite = usedPass->getDepthWriteEnabled(); … … 262 261 if (!mEnableDepthWrite) 263 262 { 264 usedPass->setDepthWriteEnabled(false);263 //usedPass->setDepthWriteEnabled(false); 265 264 } 266 265 //else if (mIsItemBufferPass) {usedPass = mItemBufferPass;} … … 274 273 if (!mEnableDepthWrite) 275 274 { 276 usedPass->setDepthWriteEnabled(IsDepthWrite);275 //usedPass->setDepthWriteEnabled(IsDepthWrite); 277 276 } 278 277
Note: See TracChangeset
for help on using the changeset viewer.