This was silly -- checking that we didn't overflow the array by dividing
the array size by 2 and then multiplying it back up by 2.
Reviewed-by: Matt Turner <mattst88@gmail.com>
struct gl_framebuffer *fb = drawable->driverPrivate;
int i = 0;
unsigned attachments[8];
- const int max_attachments = ARRAY_SIZE(attachments) / 2;
struct intel_renderbuffer *front_rb;
struct intel_renderbuffer *back_rb;
attachments[i++] = intel_bits_per_pixel(back_rb);
}
- assert(i <= 2 * max_attachments);
+ assert(i <= ARRAY_SIZE(attachments));
*buffers = screen->dri2.loader->getBuffersWithFormat(drawable,
&drawable->w,