From d7896defaeb5f9d3fd6da829cd4089de5f35b782 Mon Sep 17 00:00:00 2001 From: Bastien Bouclet Date: Sun, 1 Oct 2017 15:19:08 +0200 Subject: [PATCH] MYST3: Clear the screen with solid black Fixes unintentional transparency when loading games from the menu --- engines/myst3/gfx_opengl.cpp | 1 + engines/myst3/gfx_opengl_shaders.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/engines/myst3/gfx_opengl.cpp b/engines/myst3/gfx_opengl.cpp index c096114e39d..f63a57e2d15 100644 --- a/engines/myst3/gfx_opengl.cpp +++ b/engines/myst3/gfx_opengl.cpp @@ -83,6 +83,7 @@ void OpenGLRenderer::init() { } void OpenGLRenderer::clear() { + glClearColor(0.f, 0.f, 0.f, 1.f); // Solid black glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); glColor3f(1.0f, 1.0f, 1.0f); } diff --git a/engines/myst3/gfx_opengl_shaders.cpp b/engines/myst3/gfx_opengl_shaders.cpp index cf1d360ec0f..ab3057e94f5 100644 --- a/engines/myst3/gfx_opengl_shaders.cpp +++ b/engines/myst3/gfx_opengl_shaders.cpp @@ -163,6 +163,7 @@ void ShaderRenderer::init() { } void ShaderRenderer::clear() { + glClearColor(0.f, 0.f, 0.f, 1.f); // Solid black glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); }