gallium: actually flip the coordinates
authorZack Rusin <zack@tungstengraphics.com>
Thu, 6 Nov 2008 21:07:28 +0000 (16:07 -0500)
committerZack Rusin <zack@tungstengraphics.com>
Thu, 6 Nov 2008 21:07:28 +0000 (16:07 -0500)
src/gallium/auxiliary/util/u_rect.c

index f5619ef791d860ea89e37e00b331b6bce81fa472..30f32413d79217949ccc0751d7cd0795ea92cfbf 100644 (file)
@@ -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);