From: Chia-I Wu Date: Sun, 14 Mar 2010 06:58:27 +0000 (+0800) Subject: st/glx: Fix glXCopySubBufferMESA. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=23e9a25e1ff01d9f3ef5cc99f59e0fda0ac2d421;p=mesa.git st/glx: Fix glXCopySubBufferMESA. Honor the (x, y) and (width, height) pairs. --- diff --git a/src/gallium/state_trackers/glx/xlib/xm_st.c b/src/gallium/state_trackers/glx/xlib/xm_st.c index bcb8285d9f5..b6ed7e8e1e8 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);