intel: minor code clean-ups
authorBrian Paul <brianp@vmware.com>
Mon, 14 Sep 2009 18:42:07 +0000 (12:42 -0600)
committerBrian Paul <brianp@vmware.com>
Mon, 14 Sep 2009 18:42:18 +0000 (12:42 -0600)
src/mesa/drivers/dri/intel/intel_span.c

index 97713076dd5462fd2916f8d2f750345cc543597a..28eabbc0054caf0ce470dbda2d6aa2b1b2515a19 100644 (file)
@@ -448,14 +448,14 @@ intel_map_unmap_framebuffer(struct intel_context *intel,
                            struct gl_framebuffer *fb,
                            GLboolean map)
 {
-   GLuint i, j;
+   GLuint i;
 
    /* color draw buffers */
-   for (j = 0; j < fb->_NumColorDrawBuffers; j++) {
+   for (i = 0; i < fb->_NumColorDrawBuffers; i++) {
       if (map)
-         intel_renderbuffer_map(intel, fb->_ColorDrawBuffers[j]);
+         intel_renderbuffer_map(intel, fb->_ColorDrawBuffers[i]);
       else
-         intel_renderbuffer_unmap(intel, fb->_ColorDrawBuffers[j]);
+         intel_renderbuffer_unmap(intel, fb->_ColorDrawBuffers[i]);
    }
 
    /* color read buffer */
@@ -482,20 +482,17 @@ intel_map_unmap_framebuffer(struct intel_context *intel,
    /* depth buffer (Note wrapper!) */
    if (fb->_DepthBuffer) {
       if (map)
-        intel_renderbuffer_map(intel, fb->_DepthBuffer->Wrapped);
+         intel_renderbuffer_map(intel, fb->_DepthBuffer->Wrapped);
       else
-        intel_renderbuffer_unmap(intel,
-                                 fb->_DepthBuffer->Wrapped);
+         intel_renderbuffer_unmap(intel, fb->_DepthBuffer->Wrapped);
    }
 
    /* stencil buffer (Note wrapper!) */
    if (fb->_StencilBuffer) {
       if (map)
-        intel_renderbuffer_map(intel,
-                               fb->_StencilBuffer->Wrapped);
+         intel_renderbuffer_map(intel, fb->_StencilBuffer->Wrapped);
       else
-        intel_renderbuffer_unmap(intel,
-                                 fb->_StencilBuffer->Wrapped);
+         intel_renderbuffer_unmap(intel, fb->_StencilBuffer->Wrapped);
    }
 }