If the renderbuffer orientation is Y=0=TOP we need to invert the dstY position.tags/mesa_7_5_1
| else | else | ||||
| usage = PIPE_TRANSFER_WRITE; | 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), | ptDraw = st_cond_flush_get_tex_transfer(st_context(ctx), | ||||
| rbDraw->texture, 0, 0, 0, | rbDraw->texture, 0, 0, 0, | ||||
| usage, dstx, dsty, | usage, dstx, dsty, |