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:
reimar 2006-07-10 12:06:41 +00:00
parent 384cb8f2a3
commit c0fc839f3a
1 changed files with 1 additions and 1 deletions

View File

@ -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