diff options
author | James Ross-Gowan <rossy@jrg.systems> | 2017-11-11 15:55:21 +1100 |
---|---|---|
committer | James Ross-Gowan <rossy@jrg.systems> | 2017-11-12 17:10:22 +1100 |
commit | 9b5d062d36e3d07b8e93faf9ec1b1e11efc32f6b (patch) | |
tree | 096acf00b820aca7d87fe3f2a7271e1eaf3e46c7 /video/out/d3d11 | |
parent | 007cd24c2b1b291597531ddbebe5680aecd0c97e (diff) | |
download | mpv-9b5d062d36e3d07b8e93faf9ec1b1e11efc32f6b.tar.bz2 mpv-9b5d062d36e3d07b8e93faf9ec1b1e11efc32f6b.tar.xz |
vo_gpu: d3d11: remove flipped texture upload hack
Made unnecessary by 4a6b04bdb930.
Diffstat (limited to 'video/out/d3d11')
-rw-r--r-- | video/out/d3d11/ra_d3d11.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/video/out/d3d11/ra_d3d11.c b/video/out/d3d11/ra_d3d11.c index 3037966f23..eaa04ba8e0 100644 --- a/video/out/d3d11/ra_d3d11.c +++ b/video/out/d3d11/ra_d3d11.c @@ -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)) { |