From: Ian Romanick Date: Fri, 24 Apr 2009 23:14:51 +0000 (-0700) Subject: intel: Initialize region ptr to prevent assertion in intel_region_reference X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=302ba83116a24dbcd09a5f8d10edaaf862127873;p=mesa.git intel: Initialize region ptr to prevent assertion in intel_region_reference --- diff --git a/src/mesa/drivers/dri/intel/intel_context.c b/src/mesa/drivers/dri/intel/intel_context.c index 7fda7933733..84460327426 100644 --- a/src/mesa/drivers/dri/intel/intel_context.c +++ b/src/mesa/drivers/dri/intel/intel_context.c @@ -361,7 +361,7 @@ intel_update_renderbuffers(__DRIcontext *context, __DRIdrawable *drawable) intel_region_release(®ion); if (buffers[i].attachment == __DRI_BUFFER_DEPTH_STENCIL) { - struct intel_region *stencil_region; + struct intel_region *stencil_region = NULL; intel_region_reference(&stencil_region, region);