Mesa (master): mesa: enum bitfields are a gcc-only feature, use GLubyte

Brian Paul brianp at kemper.freedesktop.org
Fri May 14 19:24:36 UTC 2010


Module: Mesa
Branch: master
Commit: 48d3988b82506b83b7f716e2806097e4760f5a05
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=48d3988b82506b83b7f716e2806097e4760f5a05

Author: Brian Paul <brianp at vmware.com>
Date:   Thu May 13 16:37:02 2010 -0600

mesa: enum bitfields are a gcc-only feature, use GLubyte

---

 src/mesa/main/get.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/mesa/main/get.c b/src/mesa/main/get.c
index f3b4b7b..12d046b 100644
--- a/src/mesa/main/get.c
+++ b/src/mesa/main/get.c
@@ -136,8 +136,8 @@ enum value_extra {
 
 struct value_desc {
    GLenum pname;
-   enum value_location location : 8;
-   enum value_type type : 8;
+   GLubyte location;  /**< enum value_location */
+   GLubyte type;      /**< enum value_type */
    int offset;
    const int *extra;
 };




More information about the mesa-commit mailing list