mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-23 00:20:09 +01:00
swrast: get rid of needless do/while
This commit is contained in:
parent
025cf209bc
commit
db3a7c366b
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue