diff options
author | Dave Miller <[email protected]> | 2008-08-09 16:44:10 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2008-08-09 16:44:10 +1000 |
commit | 1724334d7c82abe55b6506dfe369df4facae6f06 (patch) | |
tree | c91e0a9ecf75026051c442b20bd256246e961584 /src/mesa | |
parent | 53675e5c05c0598b7ea206d5c27dbcae786a2c03 (diff) |
dri: fix crash in driGetConfigAttribIndex
Accessing a GLboolean via an int pointer on big-endian == bad.
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/drivers/dri/common/utils.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/common/utils.c b/src/mesa/drivers/dri/common/utils.c index 7fbe0d855d0..c723dfdeb00 100644 --- a/src/mesa/drivers/dri/common/utils.c +++ b/src/mesa/drivers/dri/common/utils.c @@ -836,6 +836,10 @@ driGetConfigAttribIndex(const __DRIconfig *config, case __DRI_ATTRIB_SWAP_METHOD: break; + case __DRI_ATTRIB_FLOAT_MODE: + *value = config->modes.floatMode; + break; + default: *value = *(unsigned int *) ((char *) &config->modes + attribMap[index].offset); |