intel: Initialize region ptr to prevent assertion in intel_region_reference
authorIan Romanick <ian.d.romanick@intel.com>
Fri, 24 Apr 2009 23:14:51 +0000 (16:14 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Fri, 24 Apr 2009 23:30:13 +0000 (16:30 -0700)
src/mesa/drivers/dri/intel/intel_context.c

index 7fda7933733708fbc1bd4881ccb67a3fe670bef5..844603274263bf074ad038eb8890e497a6bcfb50 100644 (file)
@@ -361,7 +361,7 @@ intel_update_renderbuffers(__DRIcontext *context, __DRIdrawable *drawable)
        intel_region_release(&region);
 
        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);