diff options
author | Brian <brian.paul@tungstengraphics.com> | 2008-03-21 14:20:07 -0600 |
---|---|---|
committer | Brian <brian.paul@tungstengraphics.com> | 2008-03-21 14:20:07 -0600 |
commit | a39091bc5b68e4d4f5302f1d3f1a138798f54b77 (patch) | |
tree | 8b83b941634753a0b41d27716ae27bd961ad4343 /src/mesa/swrast/s_readpix.c | |
parent | f1626f0bfd2b14ad8ca2afaad2ea8afb539e6491 (diff) |
Refactor PBO validate/map code.
We always need to do PBO validation, so do that in core Mesa before calling driv
er routine.
cherry-picked from Mesa/master.
Diffstat (limited to 'src/mesa/swrast/s_readpix.c')
-rw-r--r-- | src/mesa/swrast/s_readpix.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/mesa/swrast/s_readpix.c b/src/mesa/swrast/s_readpix.c index f4f882ae84..2f155d0b70 100644 --- a/src/mesa/swrast/s_readpix.c +++ b/src/mesa/swrast/s_readpix.c @@ -572,9 +572,7 @@ _swrast_ReadPixels( GLcontext *ctx, goto end; } - pixels = _mesa_validate_and_map_readpix_pbo(ctx, x, y, width, height, - format, type, - &clippedPacking, pixels); + pixels = _mesa_map_readpix_pbo(ctx, &clippedPacking, pixels); if (!pixels) return; |