Просмотр исходного кода

fix some mapping bugs

tags/texman_0_1_20060325
Brian Paul 20 лет назад
Родитель
Сommit
8a126f1166
1 измененных файлов: 4 добавлений и 4 удалений
  1. 4
    4
      src/mesa/drivers/dri/i915/intel_depthstencil.c

+ 4
- 4
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;

Загрузка…
Отмена
Сохранить