map stencil buffer too
authorBrian <brian.paul@tungstengraphics.com>
Tue, 14 Aug 2007 00:14:54 +0000 (18:14 -0600)
committerBrian <brian.paul@tungstengraphics.com>
Tue, 14 Aug 2007 00:20:04 +0000 (18:20 -0600)
src/mesa/pipe/softpipe/sp_context.c

index d67ad2c01da55c610a1ea93433f0acf18eedb4b0..34ef00f619ed2031529727d2fc2e0164097d32f5 100644 (file)
@@ -126,6 +126,12 @@ static void map_surfaces(struct softpipe_context *sp)
          pipe->region_map(pipe, sps->surface.region);
    }
 
+   if (sp->framebuffer.sbuf) {
+      struct softpipe_surface *sps = softpipe_surface(sp->framebuffer.sbuf);
+      if (sps->surface.region)
+         pipe->region_map(pipe, sps->surface.region);
+   }
+
    /* textures */
    for (i = 0; i < PIPE_MAX_SAMPLERS; i++) {
       struct pipe_mipmap_tree *mt = sp->texture[i];
@@ -155,6 +161,12 @@ static void unmap_surfaces(struct softpipe_context *sp)
          pipe->region_unmap(pipe, sps->surface.region);
    }
 
+   if (sp->framebuffer.sbuf) {
+      struct softpipe_surface *sps = softpipe_surface(sp->framebuffer.sbuf);
+      if (sps->surface.region)
+         pipe->region_unmap(pipe, sps->surface.region);
+   }
+
    /* textures */
    for (i = 0; i < PIPE_MAX_SAMPLERS; i++) {
       struct pipe_mipmap_tree *mt = sp->texture[i];