/[gentoo-x86]/x11-base/xorg-server/files/1.1.1-fix_big_endian_glx.patch
Gentoo

Contents of /x11-base/xorg-server/files/1.1.1-fix_big_endian_glx.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sun Sep 9 10:34:45 2007 UTC (6 years, 7 months ago) by dberkholz
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +0 -0 lines
FILE REMOVED
Drop 1.1, everyone's stable on 1.2 or 1.3.
(Portage version: 2.1.3.8)

1 commit 3ad1642f1bbaa5f96558cdf3384b40f7122f8781
2 Author: Michel Dänzer <michel@tungstengraphics.com>
3 Date: Sun Oct 15 16:57:09 2006 +0200
4
5 Fix __glXDRIbindTexImage() for 32 bpp on big endian platforms.
6
7 diff --git a/GL/glx/glxdri.c b/GL/glx/glxdri.c
8 index b572304..170662c 100644
9 --- a/GL/glx/glxdri.c
10 +++ b/GL/glx/glxdri.c
11 @@ -359,7 +359,12 @@ __glXDRIbindTexImage(__GLXcontext *baseC
12 if (pixmap->drawable.depth >= 24) {
13 bpp = 4;
14 format = GL_BGRA;
15 - type = GL_UNSIGNED_BYTE;
16 + type =
17 +#if X_BYTE_ORDER == X_LITTLE_ENDIAN
18 + GL_UNSIGNED_BYTE;
19 +#else
20 + GL_UNSIGNED_INT_8_8_8_8_REV;
21 +#endif
22 } else {
23 bpp = 2;
24 format = GL_RGB;

  ViewVC Help
Powered by ViewVC 1.1.20