瀏覽代碼

remove inaccurate comments

David Rose 23 年之前
父節點
當前提交
44f3ceb82a
共有 2 個文件被更改,包括 4 次插入8 次删除
  1. 2 4
      panda/src/pgraph/renderState.cxx
  2. 2 4
      panda/src/pgraph/transformState.cxx

+ 2 - 4
panda/src/pgraph/renderState.cxx

@@ -394,8 +394,7 @@ compose(const RenderState *other) const {
   // The cache entry in this object is the only one that indicates the
   // result; the other will be NULL for now.
   CPT(RenderState) result = do_compose(other);
-  // We store them in this order, on the off-chance that other is the
-  // same as this, a degenerate case which is still worth supporting.
+
   ((RenderState *)other)->_composition_cache[this]._result = NULL;
   ((RenderState *)this)->_composition_cache[other]._result = result;
 
@@ -453,8 +452,7 @@ invert_compose(const RenderState *other) const {
   // The cache entry in this object is the only one that indicates the
   // result; the other will be NULL for now.
   CPT(RenderState) result = do_invert_compose(other);
-  // We store them in this order, on the off-chance that other is the
-  // same as this, a degenerate case which is still worth supporting.
+
   ((RenderState *)other)->_invert_composition_cache[this]._result = NULL;
   ((RenderState *)this)->_invert_composition_cache[other]._result = result;
 

+ 2 - 4
panda/src/pgraph/transformState.cxx

@@ -499,8 +499,7 @@ compose(const TransformState *other) const {
   // The cache entry in this object is the only one that indicates the
   // result; the other will be NULL for now.
   CPT(TransformState) result = do_compose(other);
-  // We store them in this order, on the off-chance that other is the
-  // same as this, a degenerate case which is still worth supporting.
+
   ((TransformState *)other)->_composition_cache[this]._result = NULL;
   ((TransformState *)this)->_composition_cache[other]._result = result;
 
@@ -566,8 +565,7 @@ invert_compose(const TransformState *other) const {
   // The cache entry in this object is the only one that indicates the
   // result; the other will be NULL for now.
   CPT(TransformState) result = do_invert_compose(other);
-  // We store them in this order, on the off-chance that other is the
-  // same as this, a degenerate case which is still worth supporting.
+
   ((TransformState *)other)->_invert_composition_cache[this]._result = NULL;
   ((TransformState *)this)->_invert_composition_cache[other]._result = result;