i915: replace Elements() with ARRAY_SIZE()
authorBrian Paul <brianp@vmware.com>
Sat, 28 Feb 2015 16:05:24 +0000 (09:05 -0700)
committerBrian Paul <brianp@vmware.com>
Mon, 2 Mar 2015 15:55:30 +0000 (08:55 -0700)
Acked-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/mesa/drivers/dri/i915/intel_fbo.c

index 2a343856c52bff604145f81d5b22416d19b1aea0..1e1397d747f285c19e0ffc93cb7a37ac2b968c0f 100644 (file)
@@ -599,7 +599,7 @@ intel_validate_framebuffer(struct gl_context *ctx, struct gl_framebuffer *fb)
       }
    }
 
-   for (i = 0; i < Elements(fb->Attachment); i++) {
+   for (i = 0; i < ARRAY_SIZE(fb->Attachment); i++) {
       struct gl_renderbuffer *rb;
       struct intel_renderbuffer *irb;