Fix a copy/paste typo in Effect depth attributes

This commit is contained in:
Frederic Bouvier 2011-12-01 19:45:18 +01:00
parent 6780a0c8d4
commit 0d1ddc5f44

View File

@ -1157,7 +1157,7 @@ struct DepthBuilder : public PassAttributeBuilder
const SGPropertyNode* pfar const SGPropertyNode* pfar
= getEffectPropertyChild(effect, prop, "far"); = getEffectPropertyChild(effect, prop, "far");
if (pfar) if (pfar)
depth->setZFar(pnear->getValue<double>()); depth->setZFar(pfar->getValue<double>());
const SGPropertyNode* pmask const SGPropertyNode* pmask
= getEffectPropertyChild(effect, prop, "write-mask"); = getEffectPropertyChild(effect, prop, "write-mask");
if (pmask) if (pmask)