summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2012-05-10 08:46:35 -0700
committerEric Anholt <[email protected]>2012-05-14 16:51:00 -0700
commit1c1040dcf02898fe99316ea2bf5482a5bb2356cf (patch)
tree07fd84249d3069b9571c5c9c5e49b45f957db6bd /src
parentcdca6e3c9f8fbcdf66bb01865bc6c8d6ccdbbb19 (diff)
intel: Fix compile warning from 7b6424143d8bf572cadd46adcbaa91d2a5598635
Diffstat (limited to 'src')
-rw-r--r--src/mesa/drivers/dri/intel/intel_tex_image.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/intel/intel_tex_image.c b/src/mesa/drivers/dri/intel/intel_tex_image.c
index 094d3cd30c4..651095a27de 100644
--- a/src/mesa/drivers/dri/intel/intel_tex_image.c
+++ b/src/mesa/drivers/dri/intel/intel_tex_image.c
@@ -321,8 +321,8 @@ intelSetTexBuffer2(__DRIcontext *pDRICtx, GLint target,
struct intel_renderbuffer *rb;
struct gl_texture_object *texObj;
struct gl_texture_image *texImage;
- int level = 0, internalFormat;
- gl_format texFormat;
+ int level = 0, internalFormat = 0;
+ gl_format texFormat = MESA_FORMAT_NONE;
texObj = _mesa_get_current_tex_object(ctx, target);
intelObj = intel_texture_object(texObj);