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:
c3984c1
)
mesa: use ARRAY_SIZE in _mesa_QueryMatrixxOES()
author
Brian Paul
<brianp@vmware.com>
Sat, 7 Mar 2015 20:15:22 +0000
(13:15 -0700)
committer
Brian Paul
<brianp@vmware.com>
Thu, 12 Mar 2015 13:52:45 +0000
(07:52 -0600)
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/main/querymatrix.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/querymatrix.c
b/src/mesa/main/querymatrix.c
index
ccd5c5e
..
18361c9
100644
(file)
--- a/
src/mesa/main/querymatrix.c
+++ b/
src/mesa/main/querymatrix.c
@@
-75,7
+75,7
@@
_mesa_QueryMatrixxOES(GLfixed mantissa[16], GLint exponent[16])
* we can return immediately, as _mesa_GetInteger() will have
* logged the necessary error already.
*/
- for (i = 0; i <
sizeof(modes)/sizeof(modes[0]
); i++) {
+ for (i = 0; i <
ARRAY_SIZE(modes
); i++) {
if (modes[i].currentMode == currentMode) {
desiredMatrix = modes[i].desiredMatrix;
break;