summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2011-08-31 21:30:02 -0600
committerBrian Paul <brianp@vmware.com>2011-08-31 21:30:02 -0600
commitdb3a7c366b51e4ae006697b73c1ebca8559bfa13 (patch)
tree2bf5db00bdd8f9298da2f27745e05815f56f1ce7
parent025cf209bca7d57a8ffe2e3010ebf01fa4d797cc (diff)
swrast: get rid of needless do/while
-rw-r--r--src/mesa/swrast/s_readpix.c4
1 files 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);
+ }
}