diff options
author | Zack Rusin <zack@tungstengraphics.com> | 2008-11-06 16:07:28 -0500 |
---|---|---|
committer | Zack Rusin <zack@tungstengraphics.com> | 2008-11-06 16:07:28 -0500 |
commit | d177c9ddda2c452cf7d6696d89cf4458ef986f98 (patch) | |
tree | 09f225bafddc4005514a992cae7a3d12272032df /src/gallium/auxiliary/util/u_rect.c | |
parent | 88360913a730795d031b2ff20fe50d438ef1c151 (diff) |
gallium: actually flip the coordinates
Diffstat (limited to 'src/gallium/auxiliary/util/u_rect.c')
-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 f5619ef791..30f32413d7 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); |