diff options
author | Chad Versace <[email protected]> | 2017-05-23 16:35:34 -0700 |
---|---|---|
committer | Chad Versace <[email protected]> | 2017-05-30 12:01:37 -0700 |
commit | b86e079ab7854a97a3bb2ce2714ca1550a6ad130 (patch) | |
tree | 8c0b41236bf254833c64dbb32dc1c1569157da56 /src/mesa | |
parent | a90a15d6387a095cda06efe4e030fbf4c3838c21 (diff) |
i965: Move an 'i' declaration into its 'for' loop
In intel_update_dri2_buffers().
Trivial cleanup.
Reviewed-by: Tapani Pälli <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_context.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_context.c b/src/mesa/drivers/dri/i965/brw_context.c index adae921e571..825912b7b57 100644 --- a/src/mesa/drivers/dri/i965/brw_context.c +++ b/src/mesa/drivers/dri/i965/brw_context.c @@ -1410,7 +1410,7 @@ intel_update_dri2_buffers(struct brw_context *brw, __DRIdrawable *drawable) struct gl_framebuffer *fb = drawable->driverPrivate; struct intel_renderbuffer *rb; __DRIbuffer *buffers = NULL; - int i, count; + int count; const char *region_name; /* Set this up front, so that in case our buffers get invalidated @@ -1426,7 +1426,7 @@ intel_update_dri2_buffers(struct brw_context *brw, __DRIdrawable *drawable) if (buffers == NULL) return; - for (i = 0; i < count; i++) { + for (int i = 0; i < count; i++) { switch (buffers[i].attachment) { case __DRI_BUFFER_FRONT_LEFT: rb = intel_get_renderbuffer(fb, BUFFER_FRONT_LEFT); |