mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-29 08:15:18 -04:00
pstats: Fix erroneous highlight in strip chart before oldest frame
This commit is contained in:
parent
da57279d9a
commit
577dc25130
@ -229,6 +229,10 @@ get_collector_under_pixel(int xpoint, int ypoint) {
|
||||
// Now use that time to determine the frame.
|
||||
const PStatThreadData *thread_data = _view.get_thread_data();
|
||||
|
||||
if (time < thread_data->get_oldest_time()) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
// And now we can determine which collector within the frame, based on the
|
||||
// value height.
|
||||
if (_average_mode) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user