summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/pipe/softpipe/sp_context.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/pipe/softpipe/sp_context.c b/src/mesa/pipe/softpipe/sp_context.c
index c7af63cc2d3..07590923055 100644
--- a/src/mesa/pipe/softpipe/sp_context.c
+++ b/src/mesa/pipe/softpipe/sp_context.c
@@ -80,16 +80,16 @@ softpipe_map_surfaces(struct softpipe_context *sp)
for (i = 0; i < sp->framebuffer.num_cbufs; i++) {
ps = sp->framebuffer.cbufs[i];
- if (ps->buffer)
+ if (ps->buffer && !ps->map)
pipe_surface_map(ps);
}
ps = sp->framebuffer.zbuf;
- if (ps && ps->buffer)
+ if (ps && ps->buffer && !ps->map)
pipe_surface_map(ps);
ps = sp->framebuffer.sbuf;
- if (ps && ps->buffer)
+ if (ps && ps->buffer && !ps->map)
pipe_surface_map(ps);
}