map stencil buffer too

This commit is contained in:
Brian
2007-08-13 18:14:54 -06:00
parent 612cfb749c
commit cd308dfa79
+12
View 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];