From 0d1ddc5f44024e785e3b1978e345b72f277d5bc1 Mon Sep 17 00:00:00 2001 From: Frederic Bouvier Date: Thu, 1 Dec 2011 19:45:18 +0100 Subject: [PATCH] Fix a copy/paste typo in Effect depth attributes --- simgear/scene/material/Effect.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simgear/scene/material/Effect.cxx b/simgear/scene/material/Effect.cxx index aa221fcc..3736782a 100644 --- a/simgear/scene/material/Effect.cxx +++ b/simgear/scene/material/Effect.cxx @@ -1157,7 +1157,7 @@ struct DepthBuilder : public PassAttributeBuilder const SGPropertyNode* pfar = getEffectPropertyChild(effect, prop, "far"); if (pfar) - depth->setZFar(pnear->getValue()); + depth->setZFar(pfar->getValue()); const SGPropertyNode* pmask = getEffectPropertyChild(effect, prop, "write-mask"); if (pmask) -- 2.39.5