diff options
author | Brian <[email protected]> | 2008-03-21 14:20:07 -0600 |
---|---|---|
committer | Brian <[email protected]> | 2008-03-21 14:20:07 -0600 |
commit | a39091bc5b68e4d4f5302f1d3f1a138798f54b77 (patch) | |
tree | 8b83b941634753a0b41d27716ae27bd961ad4343 /src/mesa/state_tracker/st_cb_readpixels.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/state_tracker/st_cb_readpixels.c')
-rw-r--r-- | src/mesa/state_tracker/st_cb_readpixels.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/mesa/state_tracker/st_cb_readpixels.c b/src/mesa/state_tracker/st_cb_readpixels.c index b22e846a157..4cf9adcd28a 100644 --- a/src/mesa/state_tracker/st_cb_readpixels.c +++ b/src/mesa/state_tracker/st_cb_readpixels.c @@ -155,9 +155,7 @@ st_readpixels(GLcontext *ctx, GLint x, GLint y, GLsizei width, GLsizei height, return; } - dest = _mesa_validate_and_map_readpix_pbo(ctx, x, y, width, height, - format, type, - &clippedPacking, dest); + dest = _mesa_map_readpix_pbo(ctx, &clippedPacking, dest); if (!dest) return; |