gallium: fix do_flip bug on glCopyTexImage / surface_copy() path

This commit is contained in:
Brian Paul 2008-08-18 13:15:09 -06:00
parent 235981d871
commit 145a45e9d6

View file

@ -1098,6 +1098,10 @@ st_copy_texsubimage(GLcontext *ctx,
stImage->face, stImage->level,
destZ,
PIPE_BUFFER_USAGE_GPU_WRITE);
if (do_flip)
srcY = strb->surface->height - srcY - height;
/* for surface_copy(), y=0=top, always */
pipe->surface_copy(pipe,
do_flip,
/* dest */