[Scummvm-git-logs] scummvm master -> bdd2fb61d1dd58c941888d6b3f95b75571e4d986

bluegr noreply at scummvm.org
Thu Aug 11 21:30:09 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:
bdd2fb61d1 BACKENDS: OPENGLSDL: Fix corrupted graphics.


Commit: bdd2fb61d1dd58c941888d6b3f95b75571e4d986
    https://github.com/scummvm/scummvm/commit/bdd2fb61d1dd58c941888d6b3f95b75571e4d986
Author: Carlo Bramini (30959007+carlo-bramini at users.noreply.github.com)
Date: 2022-08-12T00:30:05+03: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 3379df37028..9aae1c69c1f 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