Selaa lähdekoodia

oops, bad modifyState

David Rose 24 vuotta sitten
vanhempi
sitoutus
88963dedb5
1 muutettua tiedostoa jossa 1 lisäystä ja 4 poistoa
  1. 1 4
      panda/src/pgraph/renderState.cxx

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

@@ -670,7 +670,7 @@ issue_delta_modify(const RenderState *other,
     return return_new(new_state);
   } else {
     delete new_state;
-    return other;
+    return this;
   }
 }
 
@@ -693,9 +693,6 @@ issue_delta_set(const RenderState *other,
     return other;
   }
 
-  // We don't need to build a new RenderState, because the return
-  // value will be exactly other.
-
   Attributes::const_iterator ai = _attributes.begin();
   Attributes::const_iterator bi = other->_attributes.begin();