Module: Mesa Branch: master Commit: db3a7c366b51e4ae006697b73c1ebca8559bfa13 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=db3a7c366b51e4ae006697b73c1ebca8559bfa13
Author: Brian Paul <[email protected]> Date: Wed Aug 31 21:30:02 2011 -0600 swrast: get rid of needless do/while --- src/mesa/swrast/s_readpix.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mesa/swrast/s_readpix.c b/src/mesa/swrast/s_readpix.c index 66ca392..6eec2fc 100644 --- a/src/mesa/swrast/s_readpix.c +++ b/src/mesa/swrast/s_readpix.c @@ -332,7 +332,7 @@ read_rgba_pixels( struct gl_context *ctx, /* width should never be > MAX_WIDTH since we did clipping earlier */ ASSERT(width <= MAX_WIDTH); - do { + { const GLint dstStride = _mesa_image_row_stride(packing, width, format, type); GLfloat (*rgba)[4] = swrast->SpanArrays->attribs[FRAG_ATTRIB_COL0]; @@ -359,7 +359,7 @@ read_rgba_pixels( struct gl_context *ctx, dst += dstStride; } - } while (0); + } } _______________________________________________ mesa-commit mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/mesa-commit
