diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 2006-03-23 23:11:30 +0000 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2006-03-23 23:11:30 +0000 |
commit | 8a126f116677e675cd026aba0c4a4779cd45df9b (patch) | |
tree | c88953337166a924fb8da3c30f655dadb529edba | |
parent | 6315aabcf2d4badbe0c44d808e8ebc5311131df9 (diff) |
fix some mapping bugs
-rw-r--r-- | src/mesa/drivers/dri/i915/intel_depthstencil.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mesa/drivers/dri/i915/intel_depthstencil.c b/src/mesa/drivers/dri/i915/intel_depthstencil.c index 408e76de9a..07de77d7a1 100644 --- a/src/mesa/drivers/dri/i915/intel_depthstencil.c +++ b/src/mesa/drivers/dri/i915/intel_depthstencil.c @@ -145,9 +145,9 @@ intel_unpair_depth_stencil(GLcontext *ctx, struct intel_renderbuffer *irb) if (stencilIrb) { /* need to extract stencil values from the depth buffer */ ASSERT(stencilIrb->PairedDepth == irb->Base.Name); - map_regions(ctx, irb, NULL); + map_regions(ctx, irb, stencilIrb); _mesa_extract_stencil(ctx, &irb->Base, &stencilIrb->Base); - unmap_regions(ctx, irb, NULL); + unmap_regions(ctx, irb, stencilIrb); stencilIrb->PairedDepth = 0; } irb->PairedStencil = 0; @@ -165,9 +165,9 @@ intel_unpair_depth_stencil(GLcontext *ctx, struct intel_renderbuffer *irb) if (depthIrb) { /* need to extract stencil values from the depth buffer */ ASSERT(depthIrb->PairedStencil == irb->Base.Name); - map_regions(ctx, irb, NULL); + map_regions(ctx, depthIrb, irb); _mesa_extract_stencil(ctx, &depthIrb->Base, &irb->Base); - unmap_regions(ctx, irb, NULL); + unmap_regions(ctx, depthIrb, irb); depthIrb->PairedStencil = 0; } irb->PairedDepth = 0; |