summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/intel
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2011-01-12 12:29:38 -0800
committerEric Anholt <[email protected]>2011-01-14 13:57:14 -0800
commitd53c8380bf1ed2897979f67fdb675074169b0465 (patch)
tree43570d66e34e459711d2522554ca15628ce76b50 /src/mesa/drivers/dri/intel
parent4c6d6dd8fc61239ac2008267f3c5cf76f4124d11 (diff)
i915: Fix compiler warning from sw fallback removal change.
Diffstat (limited to 'src/mesa/drivers/dri/intel')
-rw-r--r--src/mesa/drivers/dri/intel/intel_fbo.c2
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 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;