aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar wm4 <wm4@nowhere>2017-11-12 13:49:00 +0100
committerGravatar wm4 <wm4@nowhere>2017-11-12 13:49:00 +0100
commit9922b6ff43d58c0465275b23b7ceb313172e2be0 (patch)
treef973020f9cd3a058ed9b63e80f9fa592eafde500
parent1e70e82baa9193f6f027338b0fab0f5078971fbe (diff)
vo_gpu: ra_gl: remove stride hack
Same reasoning as in commit 9b5d062d36e3.
-rw-r--r--video/out/opengl/utils.c5
1 files changed, 1 insertions, 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) {