From 8f05560dd727247c52326e599be9f45585637475 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Sat, 17 Nov 2018 17:46:57 -0500 Subject: [PATCH] Corrects right-edge bookending. --- Outputs/OpenGL/ScanTarget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Outputs/OpenGL/ScanTarget.cpp b/Outputs/OpenGL/ScanTarget.cpp index bde563359..729519055 100644 --- a/Outputs/OpenGL/ScanTarget.cpp +++ b/Outputs/OpenGL/ScanTarget.cpp @@ -266,8 +266,8 @@ void ScanTarget::end_data(size_t actual_length) { // Also bookend the end. memcpy( - &write_area_texture_[size_t(write_pointers_.write_area) * data_type_size_], &write_area_texture_[size_t(write_pointers_.write_area - 1) * data_type_size_], + &write_area_texture_[size_t(write_pointers_.write_area - 2) * data_type_size_], data_type_size_); }