i915: Fix compiler warning from sw fallback removal change.
authorEric Anholt <eric@anholt.net>
Wed, 12 Jan 2011 20:29:38 +0000 (12:29 -0800)
committerEric Anholt <eric@anholt.net>
Fri, 14 Jan 2011 21:57:14 +0000 (13:57 -0800)
src/mesa/drivers/dri/intel/intel_fbo.c

index cbb6275e9cef9fbc5e843b6d21b66e9ac9afffaa..0db5a491c8fa3cb493fb43f39ebee31165e03cd0 100644 (file)
@@ -454,7 +454,6 @@ intel_render_texture(struct gl_context * ctx,
                      struct gl_framebuffer *fb,
                      struct gl_renderbuffer_attachment *att)
 {
-   struct intel_context *intel = intel_context(ctx);
    struct gl_texture_image *newImage
       = att->Texture->Image[att->CubeMapFace][att->TextureLevel];
    struct intel_renderbuffer *irb = intel_renderbuffer(att->Renderbuffer);
@@ -517,6 +516,7 @@ intel_render_texture(struct gl_context * ctx,
        * instead, we just make a new single-level miptree and render
        * into that.
        */
+      struct intel_context *intel = intel_context(ctx);
       struct intel_mipmap_tree *old_mt = intel_image->mt;
       struct intel_mipmap_tree *new_mt;
       int comp_byte = 0, texel_bytes;