Mesa (master): swrast: get rid of needless do/while
Brian Paul
brianp at kemper.freedesktop.org
Thu Sep 1 03:30:34 UTC 2011
Module: Mesa
Branch: master
Commit: db3a7c366b51e4ae006697b73c1ebca8559bfa13
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=db3a7c366b51e4ae006697b73c1ebca8559bfa13
Author: Brian Paul <brianp at vmware.com>
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);
+ }
}
More information about the mesa-commit
mailing list