mirror of
https://github.com/mpv-player/mpv
synced 2025-01-04 14:12:10 +00:00
vo_gpu: d3d11: remove flipped texture upload hack
Made unnecessary by 4a6b04bdb9
.
This commit is contained in:
parent
007cd24c2b
commit
9b5d062d36
@ -622,14 +622,6 @@ static bool tex_upload(struct ra *ra, const struct ra_tex_upload_params *params)
|
||||
if (tex->params.dimensions == 2) {
|
||||
stride = params->stride;
|
||||
|
||||
// stride can be negative, but vo_gpu expects the RA backend to ignore
|
||||
// the negative stride and upload the image "upside-down" for now
|
||||
if (stride < 0) {
|
||||
int h = params->rc ? mp_rect_h(*params->rc) : tex->params.h;
|
||||
src += (h - 1) * stride;
|
||||
stride = -stride;
|
||||
}
|
||||
|
||||
if (params->rc && (params->rc->x0 != 0 || params->rc->y0 != 0 ||
|
||||
params->rc->x1 != tex->params.w || params->rc->y1 != tex->params.h))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user