mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
remove some cerrs
This commit is contained in:
parent
95f127c407
commit
93ec64a6fa
@ -323,7 +323,6 @@ compose(const RenderState *other) const {
|
|||||||
((Composition &)comp)._result = do_compose(other);
|
((Composition &)comp)._result = do_compose(other);
|
||||||
}
|
}
|
||||||
// Here's the cache!
|
// Here's the cache!
|
||||||
cerr << " returning cached result " << (void *)comp._result.p() << "\n";
|
|
||||||
return comp._result;
|
return comp._result;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -659,7 +658,6 @@ issue_delta_set(const RenderState *other,
|
|||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
CPT(RenderState) RenderState::
|
CPT(RenderState) RenderState::
|
||||||
return_new(RenderState *state) {
|
return_new(RenderState *state) {
|
||||||
cerr << "RenderState::return_new(" << *state << ")\n";
|
|
||||||
nassertr(state != (RenderState *)NULL, state);
|
nassertr(state != (RenderState *)NULL, state);
|
||||||
|
|
||||||
// This should be a newly allocated pointer, not one that was used
|
// This should be a newly allocated pointer, not one that was used
|
||||||
@ -675,13 +673,11 @@ return_new(RenderState *state) {
|
|||||||
// The state was inserted; save the iterator and return the
|
// The state was inserted; save the iterator and return the
|
||||||
// input state.
|
// input state.
|
||||||
state->_saved_entry = result.first;
|
state->_saved_entry = result.first;
|
||||||
cerr << " produces new pointer " << (void *)pt_state.p() << "\n";
|
|
||||||
return pt_state;
|
return pt_state;
|
||||||
}
|
}
|
||||||
|
|
||||||
// The state was not inserted; there must be an equivalent one
|
// The state was not inserted; there must be an equivalent one
|
||||||
// already in the set. Return that one.
|
// already in the set. Return that one.
|
||||||
cerr << " returns old pointer " << (void *)(*(result.first)) << "\n";
|
|
||||||
return *(result.first);
|
return *(result.first);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user