OSDN Git Service
(root)
/
android-x86
/
external-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
7fbe0d8
..
c723dfd
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);