summaryrefslogtreecommitdiffstats
path: root/src/mesa/swrast/s_texture.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/swrast/s_texture.c')
-rw-r--r--src/mesa/swrast/s_texture.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/mesa/swrast/s_texture.c b/src/mesa/swrast/s_texture.c
index f945a6b0fa8..b98195e7489 100644
--- a/src/mesa/swrast/s_texture.c
+++ b/src/mesa/swrast/s_texture.c
@@ -342,14 +342,11 @@ map_attachment(struct gl_context *ctx,
}
else if (rb) {
/* Map ordinary renderbuffer */
- /* XXX don't map color buffers yet */
- if (buffer == BUFFER_DEPTH || buffer == BUFFER_STENCIL) {
ctx->Driver.MapRenderbuffer(ctx, rb,
0, 0, rb->Width, rb->Height,
GL_MAP_READ_BIT | GL_MAP_WRITE_BIT,
&rb->Map, &rb->RowStrideBytes);
assert(rb->Map);
- }
}
}
@@ -373,10 +370,7 @@ unmap_attachment(struct gl_context *ctx,
}
else if (rb) {
/* unmap ordinary renderbuffer */
- /* XXX don't map color buffers yet */
- if (buffer == BUFFER_DEPTH || buffer == BUFFER_STENCIL) {
- ctx->Driver.UnmapRenderbuffer(ctx, rb);
- }
+ ctx->Driver.UnmapRenderbuffer(ctx, rb);
}
rb->Map = NULL;