From db3a7c366b51e4ae006697b73c1ebca8559bfa13 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Wed, 31 Aug 2011 21:30:02 -0600 Subject: [PATCH] swrast: get rid of needless do/while --- src/mesa/swrast/s_readpix.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mesa/swrast/s_readpix.c b/src/mesa/swrast/s_readpix.c index 66ca39293a6..6eec2fc782d 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); + } } -- 2.30.2