Mesa (gallium-0.2): gallium: actually flip the coordinates
Brian Paul
brianp at kemper.freedesktop.org
Mon Nov 10 18:20:19 UTC 2008
Module: Mesa
Branch: gallium-0.2
Commit: 5668e7fa80d71bec38c61ea29e6a2a9996e0a73c
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=5668e7fa80d71bec38c61ea29e6a2a9996e0a73c
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