mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 11:18:08 +02:00
gallium: fix do_flip bug on glCopyTexImage / surface_copy() path
This commit is contained in:
parent
235981d871
commit
145a45e9d6
1 changed files with 4 additions and 0 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue