Mesa (9.1): st/xlib: Fix upside down coordinates for CopySubBuffer
Ian Romanick
idr at kemper.freedesktop.org
Wed Jun 26 17:58:38 UTC 2013
Module: Mesa
Branch: 9.1
Commit: 520586ac3ce13fe67e9ca4438310141be781fb38
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=520586ac3ce13fe67e9ca4438310141be781fb38
Author: Stéphane Marchesin <marcheu at chromium.org>
Date: Fri May 10 18:29:52 2013 -0700
st/xlib: Fix upside down coordinates for CopySubBuffer
The coordinates need to be inverted between glX and gallium.
NOTE: This is a candidate for stable release branches.
Reviewed-by: Brian Paul <brianp at vmware.com>
(cherry picked from commit 4e5416b0e2e0aedbed48acabe31a68fe1b37b61a)
---
src/gallium/state_trackers/glx/xlib/xm_api.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/gallium/state_trackers/glx/xlib/xm_api.c b/src/gallium/state_trackers/glx/xlib/xm_api.c
index 021175c..9bb5780 100644
--- a/src/gallium/state_trackers/glx/xlib/xm_api.c
+++ b/src/gallium/state_trackers/glx/xlib/xm_api.c
@@ -1240,7 +1240,7 @@ void XMesaCopySubBuffer( XMesaBuffer b, int x, int y, int width, int height )
{
xmesa_copy_st_framebuffer(b->stfb,
ST_ATTACHMENT_BACK_LEFT, ST_ATTACHMENT_FRONT_LEFT,
- x, y, width, height);
+ x, b->height - y - height, width, height);
}
More information about the mesa-commit
mailing list