summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2011-10-13 10:34:56 -0700
committerEric Anholt <[email protected]>2011-11-03 23:29:53 -0700
commitd9f2add18102282a969a3662b3d89f32cece1074 (patch)
treede94e90723a9b977b4d8e95b2d0be08b5b2bee4e
parent5b1ad7482413e7f6b51671c0a42a52e5fa377886 (diff)
swrast: Drop the global mapping of buffers across glReadPixels().
Reviewed-by: Brian Paul <[email protected]>
-rw-r--r--src/mesa/swrast/s_readpix.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/mesa/swrast/s_readpix.c b/src/mesa/swrast/s_readpix.c
index f556213815f..c36746cafaf 100644
--- a/src/mesa/swrast/s_readpix.c
+++ b/src/mesa/swrast/s_readpix.c
@@ -484,12 +484,6 @@ _swrast_ReadPixels( struct gl_context *ctx,
if (ctx->NewState)
_mesa_update_state(ctx);
- /* Need to do swrast_render_start() before clipping or anything else
- * since this is where a driver may grab the hw lock and get an updated
- * window size.
- */
- swrast_render_start(ctx);
-
/* Do all needed clipping here, so that we can forget about it later */
if (_mesa_clip_readpixels(ctx, &x, &y, &width, &height, &clippedPacking)) {
@@ -518,6 +512,4 @@ _swrast_ReadPixels( struct gl_context *ctx,
_mesa_unmap_pbo_dest(ctx, &clippedPacking);
}
}
-
- swrast_render_finish(ctx);
}