mesa: use ARRAY_SIZE in _mesa_QueryMatrixxOES()

Reviewed-by: Matt Turner <mattst88@gmail.com>
This commit is contained in:
Brian Paul 2015-03-07 13:15:22 -07:00
parent c3984c1155
commit 6ca5eaf49c
1 changed files with 1 additions and 1 deletions

View File

@ -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;