Fix __glXDRIbindTexImage() for 32 bpp on big endian platforms.

This commit is contained in:
Michel Dänzer 2006-10-15 16:57:09 +02:00 committed by Daniel Stone
parent a232693c8c
commit 0901eec87e

View File

@ -359,7 +359,12 @@ __glXDRIbindTexImage(__GLXcontext *baseContext,
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;