vo_gpu: d3d11: remove flipped texture upload hack

Made unnecessary by 4a6b04bdb9.
This commit is contained in:
James Ross-Gowan 2017-11-11 15:55:21 +11:00
parent 007cd24c2b
commit 9b5d062d36
1 changed files with 0 additions and 8 deletions

View File

@ -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))
{