From bcd4d48e708ce63a3c6755985d75dcba63d14502 Mon Sep 17 00:00:00 2001 From: David Rose Date: Sun, 25 Jan 2009 01:29:49 +0000 Subject: [PATCH] fix flashing texture problem when multiple buffers or windows are open --- panda/src/gobj/adaptiveLru.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/panda/src/gobj/adaptiveLru.cxx b/panda/src/gobj/adaptiveLru.cxx index 57a942162e..5bdabaf325 100644 --- a/panda/src/gobj/adaptiveLru.cxx +++ b/panda/src/gobj/adaptiveLru.cxx @@ -14,6 +14,7 @@ #include "adaptiveLru.h" #include "config_gobj.h" +#include "clockObject.h" #include "indent.h" static const int HIGH_PRIORITY_SCALE = 4; @@ -240,7 +241,7 @@ begin_epoch() { do_evict_to(_max_size, false); } - ++_current_frame_identifier; + _current_frame_identifier = ClockObject::get_global_clock()->get_frame_count(); } ////////////////////////////////////////////////////////////////////