summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/llvmpipe/lp_rast.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_rast.c')
-rw-r--r--src/gallium/drivers/llvmpipe/lp_rast.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_rast.c b/src/gallium/drivers/llvmpipe/lp_rast.c
index 9d1861d246..170684c1b2 100644
--- a/src/gallium/drivers/llvmpipe/lp_rast.c
+++ b/src/gallium/drivers/llvmpipe/lp_rast.c
@@ -214,7 +214,7 @@ void lp_rast_end_tile( struct lp_rasterizer *rast,
if(x + w > surface->width)
w = surface->width - x;
if(y + h > surface->height)
- h = surface->height - x;
+ h = surface->height - y;
transfer = screen->get_tex_transfer(screen,
surface->texture,