diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 2006-03-29 21:22:05 +0000 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2006-03-29 21:22:05 +0000 |
commit | cff7e025edbced13cbd63213b9f3c679580b6a21 (patch) | |
tree | 807f2dc277705be593951843a5db1eba87e8ba8c | |
parent | 3de9a9bd1d1f396bbea96a13608ee4d76a4d6516 (diff) |
fix ReadBuffer mapping bugs
-rw-r--r-- | src/mesa/drivers/dri/i915/intel_span.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i915/intel_span.c b/src/mesa/drivers/dri/i915/intel_span.c index 960ffa5dbc..84f5cc037d 100644 --- a/src/mesa/drivers/dri/i915/intel_span.c +++ b/src/mesa/drivers/dri/i915/intel_span.c @@ -224,11 +224,13 @@ intel_map_unmap_buffers(struct intel_context *intel, GLboolean map) /* color read buffers */ irb = intel_renderbuffer(ctx->ReadBuffer->_ColorReadBuffer); - if (irb && irb->region && irb->Base.Name != 0) { + if (irb && irb->region) { if (map) intel_region_map(intel, irb->region); else intel_region_unmap(intel, irb->region); + irb->pfMap = irb->region->map; + irb->pfPitch = irb->region->pitch; } /* Account for front/back color page flipping. |