On Wed, 12 Feb 2020 at 04:54, Zebediah Figura <z.figura12 at gmail.com> wrote: > + if (sampler_idx >= WINED3D_MAX_COMBINED_SAMPLERS) > + { Why not ARRAY_SIZE? (Applies to 3/6 as well.)