projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0a77ffc
)
i915: replace Elements() with ARRAY_SIZE()
author
Brian Paul
<brianp@vmware.com>
Sat, 28 Feb 2015 16:05:24 +0000
(09:05 -0700)
committer
Brian 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
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/i915/intel_fbo.c
b/src/mesa/drivers/dri/i915/intel_fbo.c
index 2a343856c52bff604145f81d5b22416d19b1aea0..1e1397d747f285c19e0ffc93cb7a37ac2b968c0f 100644
(file)
--- a/
src/mesa/drivers/dri/i915/intel_fbo.c
+++ b/
src/mesa/drivers/dri/i915/intel_fbo.c
@@
-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;