Mesa (gallium-0.2): gallium: actually flip the coordinates
Zack Rusin
zack at kemper.freedesktop.org
Thu Nov 6 21:16:00 UTC 2008
Module: Mesa
Branch: gallium-0.2
Commit: d177c9ddda2c452cf7d6696d89cf4458ef986f98
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=d177c9ddda2c452cf7d6696d89cf4458ef986f98
Author: Zack Rusin <zack at tungstengraphics.com>
Date: Thu Nov 6 16:07:28 2008 -0500
gallium: actually flip the coordinates
---
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 f5619ef..30f3241 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);
More information about the mesa-commit
mailing list