mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-22 02:40:11 +01:00
st/wgl: use ARRAY_SIZE() macro in wglChoosePixelFormatARB()
Trivial.
This commit is contained in:
parent
394f8dacbc
commit
d06045dfdd
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue