From 9b5d062d36e3d07b8e93faf9ec1b1e11efc32f6b Mon Sep 17 00:00:00 2001 From: James Ross-Gowan Date: Sat, 11 Nov 2017 15:55:21 +1100 Subject: vo_gpu: d3d11: remove flipped texture upload hack Made unnecessary by 4a6b04bdb930. --- video/out/d3d11/ra_d3d11.c | 8 -------- 1 file changed, 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)) { -- cgit v1.2.3