[Scummvm-git-logs] scummvm branch-2-6 -> 26f0fab159b932b65fc363c6a021e347e5a83f89

lotharsm noreply at scummvm.org
Mon Sep 12 11:59:32 UTC 2022


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:
26f0fab159 BACKENDS: OPENGLSDL: Fix corrupted graphics.


Commit: 26f0fab159b932b65fc363c6a021e347e5a83f89
    https://github.com/scummvm/scummvm/commit/26f0fab159b932b65fc363c6a021e347e5a83f89
Author: Carlo Bramini (30959007+carlo-bramini at users.noreply.github.com)
Date: 2022-09-12T13:59:19+02:00

Commit Message:
BACKENDS: OPENGLSDL: Fix corrupted graphics.

Size of the alpha channel is not set to its default value and this caused totally corrupted graphics on my PC.
See:
https://bugs.scummvm.org/ticket/13712

Changed paths:
    backends/graphics/openglsdl/openglsdl-graphics.cpp


diff --git a/backends/graphics/openglsdl/openglsdl-graphics.cpp b/backends/graphics/openglsdl/openglsdl-graphics.cpp
index 3dc643d388d..c6304dcf9cf 100644
--- a/backends/graphics/openglsdl/openglsdl-graphics.cpp
+++ b/backends/graphics/openglsdl/openglsdl-graphics.cpp
@@ -44,6 +44,7 @@ OpenGLSdlGraphicsManager::OpenGLSdlGraphicsManager(SdlEventSource *eventSource,
 	SDL_GL_SetAttribute(SDL_GL_RED_SIZE, 8);
 	SDL_GL_SetAttribute(SDL_GL_GREEN_SIZE, 8);
 	SDL_GL_SetAttribute(SDL_GL_BLUE_SIZE, 8);
+	SDL_GL_SetAttribute(SDL_GL_ALPHA_SIZE, 8);
 	SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE, 16);
 	SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1);
 




More information about the Scummvm-git-logs mailing list