diff options
author | Brian Paul <[email protected]> | 2017-04-28 21:32:05 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2017-04-28 21:37:07 -0600 |
commit | d06045dfdd7c93fad4808f98a27ccf15112a10bb (patch) | |
tree | 293de7827798e11b155b5c27703d09ed86f9e19c /src | |
parent | 394f8dacbcc661a4942978d5a6a1b9b961727261 (diff) |
st/wgl: use ARRAY_SIZE() macro in wglChoosePixelFormatARB()
Trivial.
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/state_trackers/wgl/stw_ext_pixelformat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/state_trackers/wgl/stw_ext_pixelformat.c b/src/gallium/state_trackers/wgl/stw_ext_pixelformat.c index 4a64c4607c3..6281d5d241d 100644 --- a/src/gallium/state_trackers/wgl/stw_ext_pixelformat.c +++ b/src/gallium/state_trackers/wgl/stw_ext_pixelformat.c @@ -342,7 +342,7 @@ score_pixelformats(struct stw_pixelformat_score *scores, /* Find out if a given attribute should be considered for score calculation. */ - for (i = 0; i < sizeof(attrib_match) / sizeof(attrib_match[0]); i++) { + for (i = 0; i < ARRAY_SIZE(attrib_match); i++) { if (attrib_match[i].attribute == attribute) { ami = &attrib_match[i]; break; |