From df9506642a0fe295fc10c2717b8416a84e6ddf8a Mon Sep 17 00:00:00 2001 From: David Rose Date: Tue, 28 Aug 2007 19:31:03 +0000 Subject: [PATCH] getDepthTest() should return 1 if there is no depth test attrib --- panda/src/pgraph/nodePath.cxx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/panda/src/pgraph/nodePath.cxx b/panda/src/pgraph/nodePath.cxx index b834cc715b..e9a280bb61 100644 --- a/panda/src/pgraph/nodePath.cxx +++ b/panda/src/pgraph/nodePath.cxx @@ -4856,8 +4856,8 @@ has_depth_test() const { // Description: Returns true if depth-test rendering has been // specifically set on this node via set_depth_test(), or // false if depth-test rendering has been specifically -// disabled, or if nothing has been specifically set. See -// also has_depth_test(). +// disabled. If nothing has been specifically set, +// returns true. See also has_depth_test(). //////////////////////////////////////////////////////////////////// bool NodePath:: get_depth_test() const { @@ -4869,7 +4869,7 @@ get_depth_test() const { return (dta->get_mode() != DepthTestAttrib::M_none); } - return false; + return true; } //////////////////////////////////////////////////////////////////// @@ -4926,8 +4926,8 @@ has_depth_write() const { // Description: Returns true if depth-write rendering has been // specifically set on this node via set_depth_write(), or // false if depth-write rendering has been specifically -// disabled, or if nothing has been specifically set. See -// also has_depth_write(). +// disabled. If nothing has been specifically set, +// returns true. See also has_depth_write(). //////////////////////////////////////////////////////////////////// bool NodePath:: get_depth_write() const { @@ -4939,7 +4939,7 @@ get_depth_write() const { return (dta->get_mode() != DepthWriteAttrib::M_off); } - return false; + return true; } ////////////////////////////////////////////////////////////////////