mirror of https://github.com/mpv-player/mpv
Fix off-by-one error for negative strides (flipped image)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18993 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
384cb8f2a3
commit
c0fc839f3a
|
@ -490,7 +490,7 @@ void glUploadTex(GLenum target, GLenum format, GLenum type,
|
|||
if (slice <= 0)
|
||||
slice = h;
|
||||
if (stride < 0) {
|
||||
data += h * stride;
|
||||
data += (h - 1) * stride;
|
||||
stride = -stride;
|
||||
}
|
||||
// this is not always correct, but should work for MPlayer
|
||||
|
|
Loading…
Reference in New Issue