projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
025cf20
)
swrast: get rid of needless do/while
author
Brian Paul
<brianp@vmware.com>
Thu, 1 Sep 2011 03:30:02 +0000
(21:30 -0600)
committer
Brian Paul
<brianp@vmware.com>
Thu, 1 Sep 2011 03:30:02 +0000
(21:30 -0600)
src/mesa/swrast/s_readpix.c
patch
|
blob
|
history
diff --git
a/src/mesa/swrast/s_readpix.c
b/src/mesa/swrast/s_readpix.c
index 66ca39293a61ba8bcd22cb93aac8da5efddc316d..6eec2fc782d3fee3fec765ba3b7e5e9a91ea9681 100644
(file)
--- 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);
+ }
}