[Mesa-dev] [PATCH 21/24] swrast: Drop the global mapping of buffers across glReadPixels().
Eric Anholt
eric at anholt.net
Fri Oct 28 12:50:11 PDT 2011
---
src/mesa/swrast/s_readpix.c | 8 --------
1 files changed, 0 insertions(+), 8 deletions(-)
diff --git a/src/mesa/swrast/s_readpix.c b/src/mesa/swrast/s_readpix.c
index b67e081..fce9762 100644
--- a/src/mesa/swrast/s_readpix.c
+++ b/src/mesa/swrast/s_readpix.c
@@ -519,12 +519,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)) {
@@ -553,6 +547,4 @@ _swrast_ReadPixels( struct gl_context *ctx,
_mesa_unmap_pbo_dest(ctx, &clippedPacking);
}
}
-
- swrast_render_finish(ctx);
}
--
1.7.7
More information about the mesa-dev
mailing list