mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 13:58:04 +02:00
mesa: use ARRAY_SIZE in _mesa_QueryMatrixxOES()
Reviewed-by: Matt Turner <mattst88@gmail.com>
This commit is contained in:
parent
c3984c1155
commit
6ca5eaf49c
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Reference in a new issue