summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/common/t_dd_vertex.h
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2002-06-03 16:06:34 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2002-06-03 16:06:34 +0000
commitf5a078197552bc956322e2fa292b034e4ccb9d82 (patch)
tree868c34dd27374bdb07d2e20ef4a1dd72e23d66b3 /src/mesa/drivers/common/t_dd_vertex.h
parent91d6f12b4ad4d5dde42ef0c86e4531a60f770dbd (diff)
bring over Michel Daenzer's DRI changes
Diffstat (limited to 'src/mesa/drivers/common/t_dd_vertex.h')
-rw-r--r--src/mesa/drivers/common/t_dd_vertex.h24
1 files changed, 13 insertions, 11 deletions
diff --git a/src/mesa/drivers/common/t_dd_vertex.h b/src/mesa/drivers/common/t_dd_vertex.h
index 9ebeeee61b..01773af7aa 100644
--- a/src/mesa/drivers/common/t_dd_vertex.h
+++ b/src/mesa/drivers/common/t_dd_vertex.h
@@ -1,10 +1,10 @@
-/* $Id: t_dd_vertex.h,v 1.9 2001/09/23 15:19:16 keithw Exp $ */
+/* $Id: t_dd_vertex.h,v 1.10 2002/06/03 16:06:35 brianp Exp $ */
/*
* Mesa 3-D graphics library
- * Version: 3.5
+ * Version: 4.0.3
*
- * Copyright (C) 1999-2001 Brian Paul All Rights Reserved.
+ * Copyright (C) 1999-2002 Brian Paul All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
@@ -33,17 +33,19 @@ typedef struct {
#ifdef COLOR_IS_RGBA
typedef struct {
- GLubyte red;
- GLubyte green;
- GLubyte blue;
- GLubyte alpha;
+#ifdef __BIG_ENDIAN
+ GLubyte alpha, blue, green, red;
+#else
+ GLubyte red, green, blue, alpha;
+#endif
} TAG(_color_t);
#else
typedef struct {
- GLubyte blue;
- GLubyte green;
- GLubyte red;
- GLubyte alpha;
+#ifdef __BIG_ENDIAN
+ GLubyte alpha, red, green, blue;
+#else
+ GLubyte blue, green, red, alpha;
+#endif
} TAG(_color_t);
#endif