[Scummvm-git-logs] scummvm master -> 31421a45046a84ea0108577d1833276b7fe76d01

aquadran noreply at scummvm.org
Sat Dec 4 21:16:27 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:
31421a4504 TINYGL: Drop BGRA pixel format


Commit: 31421a45046a84ea0108577d1833276b7fe76d01
    https://github.com/scummvm/scummvm/commit/31421a45046a84ea0108577d1833276b7fe76d01
Author: Paweł Kołodziejski (aquadran at gmail.com)
Date: 2021-12-04T22:16:22+01:00

Commit Message:
TINYGL: Drop BGRA pixel format

Changed paths:
    graphics/tinygl/texture.cpp


diff --git a/graphics/tinygl/texture.cpp b/graphics/tinygl/texture.cpp
index 68c2e8d4af..6cb662b610 100644
--- a/graphics/tinygl/texture.cpp
+++ b/graphics/tinygl/texture.cpp
@@ -102,11 +102,9 @@ void glInitTextures(GLContext *c) {
 	c->texture_min_filter = TGL_NEAREST_MIPMAP_LINEAR;
 #if defined(SCUMM_LITTLE_ENDIAN)
 	c->colorAssociationList.push_back({Graphics::PixelFormat(4, 8, 8, 8, 8, 0, 8, 16, 24), TGL_RGBA, TGL_UNSIGNED_BYTE});
-	c->colorAssociationList.push_back({Graphics::PixelFormat(4, 8, 8, 8, 8, 16, 8, 0, 24), TGL_BGRA, TGL_UNSIGNED_BYTE});
 	c->colorAssociationList.push_back({Graphics::PixelFormat(3, 8, 8, 8, 0, 0, 8, 16, 0),  TGL_RGB,  TGL_UNSIGNED_BYTE});
 #else
 	c->colorAssociationList.push_back({Graphics::PixelFormat(4, 8, 8, 8, 8, 24, 16, 8, 0), TGL_RGBA, TGL_UNSIGNED_BYTE});
-	c->colorAssociationList.push_back({Graphics::PixelFormat(4, 8, 8, 8, 8, 8, 16, 24, 0), TGL_BGRA, TGL_UNSIGNED_BYTE});
 	c->colorAssociationList.push_back({Graphics::PixelFormat(3, 8, 8, 8, 0, 16, 8, 0, 0),  TGL_RGB,  TGL_UNSIGNED_BYTE});
 #endif
 	c->colorAssociationList.push_back({Graphics::PixelFormat(2, 5, 6, 5, 0, 11, 5, 0, 0),  TGL_RGB,  TGL_UNSIGNED_SHORT_5_6_5});




More information about the Scummvm-git-logs mailing list