From 700d5926e3ea659a2f2e3912162b85eb32dd2cdf Mon Sep 17 00:00:00 2001 From: Roland Baer Date: Thu, 2 Aug 2007 15:00:13 +0300 Subject: [PATCH] Moved dereference inside previous sanity check --- src/mesa/drivers/dri/i915tex/intel_span.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mesa/drivers/dri/i915tex/intel_span.c b/src/mesa/drivers/dri/i915tex/intel_span.c index ab0874e..a16f815 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; } } } -- 1.5.2.3