diff options
author | Brian Paul <[email protected]> | 2012-01-16 10:55:39 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2012-01-24 14:12:15 -0700 |
commit | 0ff817f200ef4cb4a5ab0d90eccfc83d0671fb65 (patch) | |
tree | 936cc119a9869e913f42beb268c0c3ae7c6f8507 /src/mesa/swrast/s_texture.c | |
parent | b766d4bb43b2c8271413c1efafe3590fa75efc3c (diff) |
swrast: stop using Put/GetRow/Values() in swrast code
All color buffer rendering is now done by accessing mapped renderbuffer
memory. We're now able to get rid of all the GetRow/PutRow stuff.
Diffstat (limited to 'src/mesa/swrast/s_texture.c')
-rw-r--r-- | src/mesa/swrast/s_texture.c | 8 |
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; |