1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-06-26 10:29:31 +00:00

Defensively disables allocation of anything outside of visible lines.

This commit is contained in:
Thomas Harte 2020-09-14 22:29:05 -04:00
parent 227e98d6d7
commit eb9903cd10

View File

@ -249,6 +249,9 @@ void BufferingScanTarget::announce(Event event, bool is_visible, const Outputs::
write_pointers_ = submit_pointers_.load(std::memory_order::memory_order_relaxed);
frame_is_complete_ &= !allocation_has_failed_;
}
// Don't permit anything to be allocated on invisible areas.
allocation_has_failed_ = true;
}
}