diff options
Diffstat (limited to 'src/mesa/main/image.c')
-rw-r--r-- | src/mesa/main/image.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/main/image.c b/src/mesa/main/image.c index 5e65bf6f8ec..12f8352c2d2 100644 --- a/src/mesa/main/image.c +++ b/src/mesa/main/image.c @@ -4177,7 +4177,7 @@ _mesa_clip_readpixels(const GLcontext *ctx, *srcX = 0; } /* right clipping */ - if (*srcX + *width > buffer->Width) + if (*srcX + *width > (GLsizei) buffer->Width) *width -= (*srcX + *width - buffer->Width); if (*width <= 0) @@ -4190,7 +4190,7 @@ _mesa_clip_readpixels(const GLcontext *ctx, *srcY = 0; } /* top clipping */ - if (*srcY + *height > buffer->Height) + if (*srcY + *height > (GLsizei) buffer->Height) *height -= (*srcY + *height - buffer->Height); if (*height <= 0) |