mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-28 19:00:13 +01:00
st/mesa: fix glCopyPixels(GL_STENCIL_INDEX) inverted position
If the renderbuffer orientation is Y=0=TOP we need to invert the dstY position.
This commit is contained in:
parent
8fc945cd84
commit
beb05393c8
1 changed files with 4 additions and 0 deletions
|
|
@ -865,6 +865,10 @@ copy_stencil_pixels(GLcontext *ctx, GLint srcx, GLint srcy,
|
|||
usage = PIPE_TRANSFER_READ_WRITE;
|
||||
else
|
||||
usage = PIPE_TRANSFER_WRITE;
|
||||
|
||||
if (st_fb_orientation(ctx->DrawBuffer) == Y_0_TOP) {
|
||||
dsty = rbDraw->Base.Height - dsty - height;
|
||||
}
|
||||
|
||||
ptDraw = st_cond_flush_get_tex_transfer(st_context(ctx),
|
||||
rbDraw->texture, 0, 0, 0,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue