xserver: Branch 'server-1.2-branch'

Michel Daenzer daenzer at kemper.freedesktop.org
Sat Oct 21 14:43:42 EEST 2006


 GL/glx/glxdri.c |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletion(-)

New commits:
diff-tree 1ab7fe38df0396e0da96ab67b3d9aa237563b3ca (from fe32a0eb9fee450b530a8944aa3a2a16573b5f9a)
Author: Michel Dänzer <michel at tungstengraphics.com>
Date:   Sun Oct 15 16:57:09 2006 +0200

    Fix __glXDRIbindTexImage() for 32 bpp on big endian platforms.
    (cherry picked from 3ad1642f1bbaa5f96558cdf3384b40f7122f8781 commit)

diff --git a/GL/glx/glxdri.c b/GL/glx/glxdri.c
index b572304..170662c 100644
--- a/GL/glx/glxdri.c
+++ b/GL/glx/glxdri.c
@@ -359,7 +359,12 @@ __glXDRIbindTexImage(__GLXcontext *baseC
     if (pixmap->drawable.depth >= 24) {
 	bpp = 4;
 	format = GL_BGRA;
-	type = GL_UNSIGNED_BYTE;
+	type =
+#if X_BYTE_ORDER == X_LITTLE_ENDIAN
+	    GL_UNSIGNED_BYTE;
+#else
+	    GL_UNSIGNED_INT_8_8_8_8_REV;
+#endif
     } else {
 	bpp = 2;
 	format = GL_RGB;



More information about the xorg-commit mailing list