From 1724334d7c82abe55b6506dfe369df4facae6f06 Mon Sep 17 00:00:00 2001 From: Dave Miller Date: Sat, 9 Aug 2008 16:44:10 +1000 Subject: dri: fix crash in driGetConfigAttribIndex Accessing a GLboolean via an int pointer on big-endian == bad. --- src/mesa/drivers/dri/common/utils.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/mesa/drivers/dri/common') diff --git a/src/mesa/drivers/dri/common/utils.c b/src/mesa/drivers/dri/common/utils.c index 7fbe0d855d..c723dfdeb0 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); -- cgit v1.2.3