gallium: actually flip the coordinates
authorZack Rusin <zack@tungstengraphics.com>
Thu, 6 Nov 2008 21:07:28 +0000 (16:07 -0500)
committerBrian Paul <brian.paul@tungstengraphics.com>
Mon, 10 Nov 2008 15:05:20 +0000 (08:05 -0700)
src/gallium/auxiliary/util/u_rect.c

index f5619ef..30f3241 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);