From 9922b6ff43d58c0465275b23b7ceb313172e2be0 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 12 Nov 2017 13:49:00 +0100 Subject: vo_gpu: ra_gl: remove stride hack Same reasoning as in commit 9b5d062d36e3. --- video/out/opengl/utils.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/video/out/opengl/utils.c b/video/out/opengl/utils.c index 38982e501e..34f4736705 100644 --- a/video/out/opengl/utils.c +++ b/video/out/opengl/utils.c @@ -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) { -- cgit v1.2.3