Mesa (8.0): intel: move declaration before code

Brian Paul brianp at kemper.freedesktop.org
Fri Jan 13 09:27:13 PST 2012


Module: Mesa
Branch: 8.0
Commit: 830688b36ace22ad1412b5c1caba0e0ccd474c3c
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=830688b36ace22ad1412b5c1caba0e0ccd474c3c

Author: Brian Paul <brianp at vmware.com>
Date:   Thu Jan 12 11:41:42 2012 -0700

intel: move declaration before code
(cherry picked from commit 062a4b601edaaea193397bd5d86fea11ceec04f4)

---

 src/mesa/drivers/dri/intel/intel_fbo.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/mesa/drivers/dri/intel/intel_fbo.c b/src/mesa/drivers/dri/intel/intel_fbo.c
index 1d8b10e..c37075c 100644
--- a/src/mesa/drivers/dri/intel/intel_fbo.c
+++ b/src/mesa/drivers/dri/intel/intel_fbo.c
@@ -651,10 +651,10 @@ intel_render_texture(struct gl_context * ctx,
    struct intel_renderbuffer *irb = intel_renderbuffer(att->Renderbuffer);
    struct intel_texture_image *intel_image = intel_texture_image(image);
    struct intel_mipmap_tree *mt = intel_image->mt;
+   int layer;
 
    (void) fb;
 
-   int layer;
    if (att->CubeMapFace > 0) {
       assert(att->Zoffset == 0);
       layer = att->CubeMapFace;



More information about the mesa-commit mailing list