diff options
author | Nicolai Hähnle <[email protected]> | 2016-06-22 17:36:18 +0200 |
---|---|---|
committer | Nicolai Hähnle <[email protected]> | 2016-06-24 12:36:02 +0200 |
commit | b3de274b05c75565d14ec2d665a8bbfe55a7fb16 (patch) | |
tree | fe4181979c7c7f3d0366b8aae0b671df12c8c55d /src | |
parent | 05e741c6d6df0be159bd14e705fa1a06e2bcf4b7 (diff) |
st/mesa: fix readpixels regression with MESA_pack_invert
Fixes an error introduced in commit 3948cd37973696dc319170877382676809659465.
Reported-by: Marek Olšák <[email protected]>
Reviewed-by: Brian Paul <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/state_tracker/st_cb_readpixels.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/state_tracker/st_cb_readpixels.c b/src/mesa/state_tracker/st_cb_readpixels.c index 77c63323295..99d9cd59b0f 100644 --- a/src/mesa/state_tracker/st_cb_readpixels.c +++ b/src/mesa/state_tracker/st_cb_readpixels.c @@ -520,7 +520,7 @@ st_ReadPixels(struct gl_context *ctx, GLint x, GLint y, /* memcpy data into a user buffer */ { const uint bytesPerRow = width * util_format_get_blocksize(dst_format); - const uint destStride = _mesa_image_row_stride(pack, width, format, type); + const int destStride = _mesa_image_row_stride(pack, width, format, type); char *dest = _mesa_image_address2d(pack, pixels, width, height, format, type, 0, 0); |