[Scummvm-git-logs] scummvm master -> 51edb558512b936382a805121dec0b651575f70c

aquadran aquadran at gmail.com
Fri Oct 1 20:31:17 UTC 2021


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
51edb55851 GRAPHICS: Do not clear frame buffer. Let engine only do that. Fixes #12936


Commit: 51edb558512b936382a805121dec0b651575f70c
    https://github.com/scummvm/scummvm/commit/51edb558512b936382a805121dec0b651575f70c
Author: Paweł Kołodziejski (aquadran at gmail.com)
Date: 2021-10-01T22:31:13+02:00

Commit Message:
GRAPHICS: Do not clear frame buffer. Let engine only do that. Fixes #12936

Changed paths:
    graphics/opengl/framebuffer.cpp


diff --git a/graphics/opengl/framebuffer.cpp b/graphics/opengl/framebuffer.cpp
index d03722ec4f..dd938c613a 100644
--- a/graphics/opengl/framebuffer.cpp
+++ b/graphics/opengl/framebuffer.cpp
@@ -195,9 +195,6 @@ void FrameBuffer::init() {
 void FrameBuffer::attach() {
 	glBindFramebuffer(GL_FRAMEBUFFER, _frameBuffer);
 	glViewport(0,0, _width, _height);
-
-	glClearColor(0, 0, 0, 1.0f);
-	glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
 }
 
 void FrameBuffer::detach() {
@@ -255,9 +252,6 @@ void MultiSampleFrameBuffer::attach() {
 	glBindFramebuffer(GL_READ_FRAMEBUFFER, getFrameBufferName());
 	glBindFramebuffer(GL_DRAW_FRAMEBUFFER, _msFrameBufferId);
 	glViewport(0,0, getWidth(), getHeight());
-
-	glClearColor(0, 0, 0, 1.0f);
-	glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
 }
 
 void MultiSampleFrameBuffer::detach() {




More information about the Scummvm-git-logs mailing list