From: Zack Rusin Date: Thu, 6 Nov 2008 21:07:28 +0000 (-0500) Subject: gallium: actually flip the coordinates X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d177c9ddda2c452cf7d6696d89cf4458ef986f98;p=mesa.git gallium: actually flip the coordinates --- diff --git a/src/gallium/auxiliary/util/u_rect.c b/src/gallium/auxiliary/util/u_rect.c index f5619ef791d..30f32413d79 100644 --- a/src/gallium/auxiliary/util/u_rect.c +++ b/src/gallium/auxiliary/util/u_rect.c @@ -222,7 +222,8 @@ util_surface_copy(struct pipe_context *pipe, w, h, src_map, do_flip ? -(int) src->stride : src->stride, - src_x, src_y); + src_x, + do_flip ? w - src_y : src_y); } pipe->screen->surface_unmap(pipe->screen, src);