From 88baa467d05e4fa6858b6252a18912c9aec93302 Mon Sep 17 00:00:00 2001 From: cxgeorge <> Date: Fri, 12 Oct 2001 00:32:40 +0000 Subject: [PATCH] add clear_cached_state --- panda/src/display/graphicsStateGuardian.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/panda/src/display/graphicsStateGuardian.h b/panda/src/display/graphicsStateGuardian.h index ed4f1c8bb6..3e86e88d0b 100644 --- a/panda/src/display/graphicsStateGuardian.h +++ b/panda/src/display/graphicsStateGuardian.h @@ -157,6 +157,8 @@ public: // coordinate space differently. virtual float compute_distance_to(const LPoint3f &point) const=0; + INLINE void clear_cached_state(void) { _state.clear(); }; + protected: virtual PT(SavedFrameBuffer) save_frame_buffer(const RenderBuffer &buffer, CPT(DisplayRegion) dr)=0;