mesa: use ARRAY_SIZE in _mesa_QueryMatrixxOES()
Reviewed-by: Matt Turner <mattst88@gmail.com>
This commit is contained in:
parent
c3984c1155
commit
6ca5eaf49c
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue