1
0
mirror of https://github.com/mpv-player/mpv synced 2025-03-10 16:24:20 +00:00

vo_gpu: ra_gl: remove stride hack

Same reasoning as in commit 9b5d062d36.
This commit is contained in:
wm4 2017-11-12 13:49:00 +01:00
parent 1e70e82baa
commit 9922b6ff43

View File

@ -84,10 +84,7 @@ void gl_upload_tex(GL *gl, GLenum target, GLenum format, GLenum type,
int y_max = y + h;
if (w <= 0 || h <= 0 || !bpp)
return;
if (stride < 0) {
data += (h - 1) * stride;
stride = -stride;
}
assert(stride > 0);
gl->PixelStorei(GL_UNPACK_ALIGNMENT, get_alignment(stride));
int slice = h;
if (gl->mpgl_caps & MPGL_CAP_ROW_LENGTH) {