diff options
author | Brian Paul <[email protected]> | 2005-09-03 16:57:58 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2005-09-03 16:57:58 +0000 |
commit | acafeeb6dce74382fb3a48b83ab72bf67b7581ea (patch) | |
tree | 63bae8571a6008628384d37514932bfd17c2f8d4 /src/mesa/swrast/s_readpix.c | |
parent | 54be0763e1c24091ba522139e899d0254143ba7d (diff) |
Remove last remnants of pre-renderbuffer code.
Diffstat (limited to 'src/mesa/swrast/s_readpix.c')
-rw-r--r-- | src/mesa/swrast/s_readpix.c | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/src/mesa/swrast/s_readpix.c b/src/mesa/swrast/s_readpix.c index de13a95ffce..82322c766c3 100644 --- a/src/mesa/swrast/s_readpix.c +++ b/src/mesa/swrast/s_readpix.c @@ -1,8 +1,8 @@ /* * Mesa 3-D graphics library - * Version: 6.3 + * Version: 6.5 * - * Copyright (C) 1999-2004 Brian Paul All Rights Reserved. + * Copyright (C) 1999-2005 Brian Paul All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), @@ -74,8 +74,6 @@ read_index_pixels( GLcontext *ctx, return; } - _swrast_use_read_buffer(ctx); - /* XXX: width should never be > MAX_WIDTH since we did clipping earlier */ readWidth = (width > MAX_WIDTH) ? MAX_WIDTH : width; @@ -92,8 +90,6 @@ read_index_pixels( GLcontext *ctx, _mesa_pack_index_span(ctx, readWidth, type, dest, index, &ctx->Pack, ctx->_ImageTransferState); } - - _swrast_use_draw_buffer(ctx); } @@ -378,13 +374,9 @@ read_rgba_pixels( GLcontext *ctx, return; } - _swrast_use_read_buffer(ctx); - /* Try optimized path first */ if (read_fast_rgba_pixels( ctx, x, y, width, height, format, type, pixels, packing )) { - - _swrast_use_draw_buffer(ctx); return; /* done! */ } @@ -499,8 +491,6 @@ read_rgba_pixels( GLcontext *ctx, } } } - - _swrast_use_draw_buffer(ctx); } |