Commit cc84b252 authored by Józef Kucia's avatar Józef Kucia Committed by Alexandre Julliard

wined3d: Use ARRAY_SIZE() in init_format_filter_info().

parent 0d3dc7c9
......@@ -3107,9 +3107,9 @@ static void init_format_filter_info(struct wined3d_gl_info *gl_info, enum wined3
filtered = FALSE;
}
if(filtered)
if (filtered)
{
for(i = 0; i < (sizeof(fmts16) / sizeof(*fmts16)); i++)
for (i = 0; i < ARRAY_SIZE(fmts16); ++i)
{
fmt_idx = get_format_idx(fmts16[i]);
format_set_flag(&gl_info->formats[fmt_idx], WINED3DFMT_FLAG_FILTERING);
......@@ -3118,14 +3118,14 @@ static void init_format_filter_info(struct wined3d_gl_info *gl_info, enum wined3
return;
}
for(i = 0; i < (sizeof(fmts16) / sizeof(*fmts16)); i++)
for (i = 0; i < ARRAY_SIZE(fmts16); ++i)
{
fmt_idx = get_format_idx(fmts16[i]);
format = &gl_info->formats[fmt_idx];
if (!format->glInternal) continue; /* Not supported by GL */
filtered = check_filter(gl_info, gl_info->formats[fmt_idx].glInternal);
if(filtered)
if (filtered)
{
TRACE("Format %s supports filtering\n", debug_d3dformat(fmts16[i]));
format_set_flag(format, WINED3DFMT_FLAG_FILTERING);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment