intel: Ensure variable intel is used in i915 builds.
authorVinson Lee <vlee@freedesktop.org>
Fri, 8 Feb 2013 06:19:20 +0000 (22:19 -0800)
committerVinson Lee <vlee@freedesktop.org>
Sat, 9 Feb 2013 02:51:27 +0000 (18:51 -0800)
Fixes unused pointer value defect reported by Coverity.

Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/drivers/dri/intel/intel_tex_copy.c

index 5acdb42c3aca8e5579903fe4708598a9ec86f4cc..6d90db318d2224381f5de1ac2a185bac279557a3 100644 (file)
@@ -190,7 +190,7 @@ intelCopyTexSubImage(struct gl_context *ctx, GLuint dims,
 #endif
 
       /* Next, try the BLT engine. */
-      if (intel_copy_texsubimage(intel_context(ctx),
+      if (intel_copy_texsubimage(intel,
                                  intel_texture_image(texImage),
                                  xoffset, yoffset,
                                  intel_renderbuffer(rb), x, y, width, height))