From: Brian Date: Thu, 2 Aug 2007 14:31:44 +0000 (-0600) Subject: move code to prevent NULL ptr dereference (bug 11810) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6dae3f8c881ae90664fa826032402efb6de1bb8b;p=mesa.git move code to prevent NULL ptr dereference (bug 11810) --- diff --git a/src/mesa/drivers/dri/i915tex/intel_span.c b/src/mesa/drivers/dri/i915tex/intel_span.c index ab0874e4fd6..d1f8ef06beb 100644 --- a/src/mesa/drivers/dri/i915tex/intel_span.c +++ b/src/mesa/drivers/dri/i915tex/intel_span.c @@ -198,9 +198,9 @@ intel_map_unmap_buffers(struct intel_context *intel, GLboolean map) intel_region_map(intel->intelScreen, irb->region); else intel_region_unmap(intel->intelScreen, irb->region); + irb->pfMap = irb->region->map; + irb->pfPitch = irb->region->pitch; } - irb->pfMap = irb->region->map; - irb->pfPitch = irb->region->pitch; } } }