diff options
author | Chia-I Wu <olv@lunarg.com> | 2010-03-14 14:58:27 +0800 |
---|---|---|
committer | Chia-I Wu <olv@lunarg.com> | 2010-03-14 14:59:55 +0800 |
commit | 23e9a25e1ff01d9f3ef5cc99f59e0fda0ac2d421 (patch) | |
tree | 5380b0ffc7a1e72ccde0c4177b0a44c738cce3fd | |
parent | d6262bdcfb64e1f88f6a890829f5c30c26bc372b (diff) | |
download | external_mesa3d-23e9a25e1ff01d9f3ef5cc99f59e0fda0ac2d421.zip external_mesa3d-23e9a25e1ff01d9f3ef5cc99f59e0fda0ac2d421.tar.gz external_mesa3d-23e9a25e1ff01d9f3ef5cc99f59e0fda0ac2d421.tar.bz2 |
st/glx: Fix glXCopySubBufferMESA.
Honor the (x, y) and (width, height) pairs.
-rw-r--r-- | src/gallium/state_trackers/glx/xlib/xm_st.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/state_trackers/glx/xlib/xm_st.c b/src/gallium/state_trackers/glx/xlib/xm_st.c index bcb8285..b6ed7e8 100644 --- a/src/gallium/state_trackers/glx/xlib/xm_st.c +++ b/src/gallium/state_trackers/glx/xlib/xm_st.c @@ -115,7 +115,7 @@ xmesa_st_framebuffer_copy_textures(struct st_framebuffer_iface *stfbi, dst_ptex, 0, 0, 0, PIPE_BUFFER_USAGE_GPU_WRITE); if (src && dst) - pipe->surface_copy(pipe, dst, 0, 0, src, 0, 0, src->width, src->height); + pipe->surface_copy(pipe, dst, x, y, src, x, y, width, height); pipe_surface_reference(&src, NULL); pipe_surface_reference(&dst, NULL); |