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
= getEffectPropertyChild(effect, prop, "far");
if (pfar)
depth->setZFar(pnear->getValue<double>());
depth->setZFar(pfar->getValue<double>());
const SGPropertyNode* pmask
= getEffectPropertyChild(effect, prop, "write-mask");
if (pmask)