Browse Source

mesa: use ARRAY_SIZE in _mesa_QueryMatrixxOES()

Reviewed-by: Matt Turner <mattst88@gmail.com>
tags/10.6-branchpoint
Brian Paul 10 years ago
parent
commit
6ca5eaf49c
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/mesa/main/querymatrix.c

+ 1
- 1
src/mesa/main/querymatrix.c 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;

Loading…
Cancel
Save