From 9a898fe061ef2075d09a7af121d6c8f40093d22f Mon Sep 17 00:00:00 2001 From: David Rose Date: Mon, 15 Jul 2002 21:29:21 +0000 Subject: [PATCH] oops, clear old _self_compose value --- panda/src/pgraph/renderState.cxx | 1 + panda/src/pgraph/transformState.cxx | 1 + 2 files changed, 2 insertions(+) diff --git a/panda/src/pgraph/renderState.cxx b/panda/src/pgraph/renderState.cxx index 21a72d398f..f85e961f3b 100644 --- a/panda/src/pgraph/renderState.cxx +++ b/panda/src/pgraph/renderState.cxx @@ -692,6 +692,7 @@ clear_cache() { if (state->_self_compose != (RenderState *)NULL && state->_self_compose != state) { unref_delete((RenderState *)state->_self_compose); + state->_self_compose = (RenderState *)NULL; } } diff --git a/panda/src/pgraph/transformState.cxx b/panda/src/pgraph/transformState.cxx index fce4db953b..44c1eb6b74 100644 --- a/panda/src/pgraph/transformState.cxx +++ b/panda/src/pgraph/transformState.cxx @@ -723,6 +723,7 @@ clear_cache() { if (state->_self_compose != (TransformState *)NULL && state->_self_compose != state) { unref_delete((TransformState *)state->_self_compose); + state->_self_compose = (TransformState *)NULL; } }