From: Eric Anholt Date: Wed, 12 Jan 2011 20:29:38 +0000 (-0800) Subject: i915: Fix compiler warning from sw fallback removal change. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d53c8380bf1ed2897979f67fdb675074169b0465;p=mesa.git i915: Fix compiler warning from sw fallback removal change. --- diff --git a/src/mesa/drivers/dri/intel/intel_fbo.c b/src/mesa/drivers/dri/intel/intel_fbo.c index cbb6275e9ce..0db5a491c8f 100644 --- a/src/mesa/drivers/dri/intel/intel_fbo.c +++ b/src/mesa/drivers/dri/intel/intel_fbo.c @@ -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;