From eb9903cd108791de7438144f756fd2c98241ecf0 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Mon, 14 Sep 2020 22:29:05 -0400 Subject: [PATCH] Defensively disables allocation of anything outside of visible lines. --- Outputs/ScanTargets/BufferingScanTarget.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Outputs/ScanTargets/BufferingScanTarget.cpp b/Outputs/ScanTargets/BufferingScanTarget.cpp index 0af58d150..ac3857a4c 100644 --- a/Outputs/ScanTargets/BufferingScanTarget.cpp +++ b/Outputs/ScanTargets/BufferingScanTarget.cpp @@ -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; } }