[Scummvm-git-logs] scummvm master -> 106fca7f27a83bb6a37bafb149e8006fe7922054

bluegr noreply at scummvm.org
Wed Jun 18 19:33:53 UTC 2025


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

Summary:
106fca7f27 OPENGL: Fix copy/paste error with ABGR1555 pixel format


Commit: 106fca7f27a83bb6a37bafb149e8006fe7922054
    https://github.com/scummvm/scummvm/commit/106fca7f27a83bb6a37bafb149e8006fe7922054
Author: Cameron Cawley (ccawley2011 at gmail.com)
Date: 2025-06-18T22:33:50+03:00

Commit Message:
OPENGL: Fix copy/paste error with ABGR1555 pixel format

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


diff --git a/backends/graphics/opengl/opengl-graphics.cpp b/backends/graphics/opengl/opengl-graphics.cpp
index 7c3245c77b3..bbc2259c027 100644
--- a/backends/graphics/opengl/opengl-graphics.cpp
+++ b/backends/graphics/opengl/opengl-graphics.cpp
@@ -290,7 +290,7 @@ Common::List<Graphics::PixelFormat> OpenGLGraphicsManager::getSupportedFormats()
 		// BGR565
 		formats.push_back(Graphics::PixelFormat(2, 5, 6, 5, 0, 0, 5, 11, 0));
 		// ABGR1555
-		formats.push_back(Graphics::PixelFormat(2, 5, 5, 5, 1, 10, 5, 0, 15));
+		formats.push_back(Graphics::PixelFormat(2, 5, 5, 5, 1, 0, 5, 10, 15));
 		// ARGB1555
 		formats.push_back(Graphics::PixelFormat(2, 5, 5, 5, 1, 10, 5, 0, 15));
 		// BGRA5551
@@ -1780,7 +1780,7 @@ bool OpenGLGraphicsManager::getGLPixelFormat(const Graphics::PixelFormat &pixelF
 		glFormat = GL_RGB;
 		glType = GL_UNSIGNED_SHORT_5_6_5_REV;
 		return true;
-	} else if (pixelFormat == Graphics::PixelFormat(2, 5, 5, 5, 1, 10, 5, 0, 15)) { // ABGR1555
+	} else if (pixelFormat == Graphics::PixelFormat(2, 5, 5, 5, 1, 0, 5, 10, 15)) { // ABGR1555
 		glIntFormat = GL_RGB;
 		glFormat = GL_RGBA;
 		glType = GL_UNSIGNED_SHORT_1_5_5_5_REV;




More information about the Scummvm-git-logs mailing list