diff options
author | Kristian Høgsberg <krh@redhat.com> | 2008-11-12 15:19:09 -0500 |
---|---|---|
committer | Kristian Høgsberg <krh@redhat.com> | 2008-11-12 15:21:04 -0500 |
commit | 8ff62ea5ba1bc331c886840b2b1e101cb4f2ebed (patch) | |
tree | f6acfd212287200e31150f2c7b720c7e049ad1d1 /glx | |
parent | d91243beb63008fff2ce6affa7db091786e8c49a (diff) |
CopySubBuffer expects GL style coordinates.
Diffstat (limited to 'glx')
-rw-r--r-- | glx/glxdri2.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/glx/glxdri2.c b/glx/glxdri2.c index c4105e26d..4e76c7135 100644 --- a/glx/glxdri2.c +++ b/glx/glxdri2.c @@ -114,13 +114,14 @@ static void __glXDRIdrawableCopySubBuffer(__GLXdrawable *drawable, int x, int y, int w, int h) { + __GLXDRIdrawable *private = (__GLXDRIdrawable *) drawable; BoxRec box; RegionRec region; box.x1 = x; - box.y1 = y; + box.y1 = private->height - y - h; box.x2 = x + w; - box.y2 = y + h; + box.y2 = private->height - y; REGION_INIT(drawable->pDraw->pScreen, ®ion, &box, 0); DRI2CopyRegion(drawable->pDraw, ®ion, |