From c7fa2ed11a03f59a3dc4b7a34c13cdfe06ec43f0 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Fri, 7 Jul 2017 23:21:25 -0400 Subject: [PATCH] It makes more sense not to retain the previous texture builder run until vertex storage is confirmed. --- Outputs/CRT/CRT.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Outputs/CRT/CRT.cpp b/Outputs/CRT/CRT.cpp index d34174fec..88e658e93 100644 --- a/Outputs/CRT/CRT.cpp +++ b/Outputs/CRT/CRT.cpp @@ -140,12 +140,12 @@ void CRT::advance_cycles(unsigned int number_of_cycles, bool hsync_requested, bo bool is_output_segment = ((is_output_run && next_run_length) && !horizontal_flywheel_->is_in_retrace() && !vertical_flywheel_->is_in_retrace()); uint8_t *next_run = nullptr; if(is_output_segment && !openGL_output_builder_.composite_output_buffer_is_full()) { - openGL_output_builder_.texture_builder.retain_latest(); next_run = openGL_output_builder_.array_builder.get_input_storage(SourceVertexSize); } if(next_run) { // output_y and texture locations will be written later; we won't necessarily know what it is outside of the locked region + openGL_output_builder_.texture_builder.retain_latest(); source_output_position_x1() = (uint16_t)horizontal_flywheel_->get_current_output_position(); source_phase() = colour_burst_phase_; source_amplitude() = colour_burst_amplitude_;