1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-29 12:50:28 +00:00

Reverts the clear colour to black.

The change was related to debugging; it was not intentionally committed.
This commit is contained in:
Thomas Harte 2019-02-24 14:36:08 -05:00
parent d4134cd0d8
commit a6e61ef83b

View File

@ -588,7 +588,7 @@ void ScanTarget::draw(bool synchronous, int output_width, int output_height) {
// If this is start-of-frame, clear any untouched pixels and flush the stencil buffer // If this is start-of-frame, clear any untouched pixels and flush the stencil buffer
if(line_metadata_buffer_[start_line].is_first_in_frame) { if(line_metadata_buffer_[start_line].is_first_in_frame) {
if(stencil_is_valid_ && line_metadata_buffer_[start_line].previous_frame_was_complete) { if(stencil_is_valid_ && line_metadata_buffer_[start_line].previous_frame_was_complete) {
full_display_rectangle_.draw(1.0f, 0.0f, 0.0f); full_display_rectangle_.draw(0.0f, 0.0f, 0.0f);
} }
stencil_is_valid_ = true; stencil_is_valid_ = true;
test_gl(glClear, GL_STENCIL_BUFFER_BIT); test_gl(glClear, GL_STENCIL_BUFFER_BIT);