st/glx: Fix glXCopySubBufferMESA.

Honor the (x, y) and (width, height) pairs.
This commit is contained in:
Chia-I Wu 2010-03-14 14:58:27 +08:00
parent d6262bdcfb
commit 23e9a25e1f

View file

@ -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);