diff options
author | Eric Engestrom <[email protected]> | 2017-09-04 13:51:53 +0100 |
---|---|---|
committer | Eric Engestrom <[email protected]> | 2017-09-08 10:29:40 +0100 |
commit | 440ab623417d1b03865fde7e3a008166fdf1ecd4 (patch) | |
tree | 9eadfdeb4915a5f16c4b5da8ab060e20db9d57ed /src/glx/driwindows_glx.c | |
parent | b33b85cdd4cb54b3a95d14f170ec6792e554cdb1 (diff) |
glx: use ARRAY_SIZE macro
Signed-off-by: Eric Engestrom <[email protected]>
Reviewed-by: Jon Turney <[email protected]>
Diffstat (limited to 'src/glx/driwindows_glx.c')
-rw-r--r-- | src/glx/driwindows_glx.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/glx/driwindows_glx.c b/src/glx/driwindows_glx.c index 02d95e7bfd2..85525431bf9 100644 --- a/src/glx/driwindows_glx.c +++ b/src/glx/driwindows_glx.c @@ -24,6 +24,7 @@ #include "glxclient.h" #include "glx_error.h" #include "dri_common.h" +#include "util/macros.h" #include "windows/xwindowsdri.h" #include "windows/windowsgl.h" @@ -427,7 +428,7 @@ driwindowsBindExtensions(struct driwindows_screen *psc) windows_extensions(&gl_extensions, &wgl_extensions); - for (i = 0; i < sizeof(extensionMap)/sizeof(extensionMap[0]); i++) { + for (i = 0; i < ARRAY_SIZE(extensionMap); i++) { if (strstr(wgl_extensions, extensionMap[i].wglext)) { __glXEnableDirectExtension(&psc->base, extensionMap[i].glxext); InfoMessageF("enabled %s\n", extensionMap[i].glxext); |