diff options
author | Adam Jackson <[email protected]> | 2004-12-27 21:52:17 +0000 |
---|---|---|
committer | Adam Jackson <[email protected]> | 2004-12-27 21:52:17 +0000 |
commit | d9fcfa27976788365c2b7846e13d3081bb3aa9d1 (patch) | |
tree | 130bd6e30e4a2a910649088aabb77e944f5c0d5f /src | |
parent | 0983c9dd993a4cdabccc1ea3c5bc09a0f1ed507c (diff) |
Bug #1859: Initialize 'size' before first use in intelTryReadPixels()
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/drivers/dri/i915/intel_pixel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i915/intel_pixel.c b/src/mesa/drivers/dri/i915/intel_pixel.c index 830aa4355c1..d842273a80d 100644 --- a/src/mesa/drivers/dri/i915/intel_pixel.c +++ b/src/mesa/drivers/dri/i915/intel_pixel.c @@ -145,7 +145,7 @@ intelTryReadPixels( GLcontext *ctx, GLvoid *pixels ) { intelContextPtr intel = INTEL_CONTEXT(ctx); - GLint size; + GLint size = 0; GLint pitch = pack->RowLength ? pack->RowLength : width; if (INTEL_DEBUG & DEBUG_PIXEL) |