From e1285028aa6ce346e1ec89c9006a701062e20f04 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Mon, 21 Nov 2016 11:42:45 +0800 Subject: [PATCH] Removed a redundant clear and some dead code. --- Outputs/CRT/Internals/CRTOpenGL.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/Outputs/CRT/Internals/CRTOpenGL.cpp b/Outputs/CRT/Internals/CRTOpenGL.cpp index 55c5d4e15..4211bdb4d 100644 --- a/Outputs/CRT/Internals/CRTOpenGL.cpp +++ b/Outputs/CRT/Internals/CRTOpenGL.cpp @@ -202,14 +202,10 @@ void OpenGLOutputBuilder::draw_frame(unsigned int output_width, unsigned int out glDisable(GL_BLEND); glBindFramebuffer(GL_FRAMEBUFFER, 0); glViewport(0, 0, (GLsizei)output_width, (GLsizei)output_height); - glClear(GL_COLOR_BUFFER_BIT); glActiveTexture(pixel_accumulation_texture_unit); framebuffer->bind_texture(); framebuffer->draw((float)output_width / (float)output_height); -// glViewport(0, 0, (GLsizei)output_width / 4, (GLsizei)output_height / 4); -// compositeTexture->bind_texture(); -// compositeTexture->draw((float)output_width / (float)output_height); _fence = glFenceSync(GL_SYNC_GPU_COMMANDS_COMPLETE, 0); _draw_mutex->unlock();