[X2Go-Commits] [pale-moon] 75/294: Remove texture layout endian-ness check for Moz2D.
git-admin at x2go.org
git-admin at x2go.org
Sat Apr 27 08:57:50 CEST 2019
This is an automated email from the git hooks/post-receive script.
x2go pushed a commit to branch upstream/28.5.0
in repository pale-moon.
commit b55a0dd2406f4b360295bc20ec303757112906f1
Author: wolfbeast <mcwerewolf at wolfbeast.com>
Date: Tue Mar 5 01:46:22 2019 +0100
Remove texture layout endian-ness check for Moz2D.
This resolves #986.
This removes endian-based inversion of texture layout aliases when
represented as uint32. This inversion was incorrect and would cause
unknown texture formats as a result on big-endian machines (PPC64).
---
gfx/2d/Types.h | 10 ----------
1 file changed, 10 deletions(-)
diff --git a/gfx/2d/Types.h b/gfx/2d/Types.h
index 7b1676a..3cdf077 100644
--- a/gfx/2d/Types.h
+++ b/gfx/2d/Types.h
@@ -65,18 +65,8 @@ enum class SurfaceFormat : int8_t {
// This represents the unknown format.
UNKNOWN,
- // The following values are endian-independent synonyms. The _UINT32 suffix
- // indicates that the name reflects the layout when viewed as a uint32_t
- // value.
-#if MOZ_LITTLE_ENDIAN
A8R8G8B8_UINT32 = B8G8R8A8, // 0xAARRGGBB
X8R8G8B8_UINT32 = B8G8R8X8 // 0x00RRGGBB
-#elif MOZ_BIG_ENDIAN
- A8R8G8B8_UINT32 = A8R8G8B8, // 0xAARRGGBB
- X8R8G8B8_UINT32 = X8R8G8B8 // 0x00RRGGBB
-#else
-# error "bad endianness"
-#endif
};
inline bool IsOpaque(SurfaceFormat aFormat)
--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/pale-moon.git
More information about the x2go-commits
mailing list