projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
53675e5
)
dri: fix crash in driGetConfigAttribIndex
author
Dave Miller
<davem@davemloft.net>
Sat, 9 Aug 2008 06:44:10 +0000
(16:44 +1000)
committer
Dave Airlie
<airlied@linux.ie>
Sat, 9 Aug 2008 06:44:10 +0000
(16:44 +1000)
Accessing a GLboolean via an int pointer on big-endian == bad.
src/mesa/drivers/dri/common/utils.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/common/utils.c
b/src/mesa/drivers/dri/common/utils.c
index 7fbe0d855d0d2e09e3e48f04f456344646e0c5c7..c723dfdeb00a4f73938e4c26ef0f93203f5cc065 100644
(file)
--- 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);