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:
parent
1e70e82baa
commit
9922b6ff43
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user