diff options
author | Zack Rusin <[email protected]> | 2008-11-06 16:07:28 -0500 |
---|---|---|
committer | Brian Paul <[email protected]> | 2008-11-10 08:05:20 -0700 |
commit | 5668e7fa80d71bec38c61ea29e6a2a9996e0a73c (patch) | |
tree | 0c0270e861823de028aefaf9e0a1f44a665408e6 /src/gallium/auxiliary | |
parent | 325cbeb29a63e3d71da00baeab864970fe3aa595 (diff) |
gallium: actually flip the coordinates
Diffstat (limited to 'src/gallium/auxiliary')
-rw-r--r-- | src/gallium/auxiliary/util/u_rect.c | 3 |
1 files changed, 2 insertions, 1 deletions
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); |