summaryrefslogtreecommitdiff
path: root/po
diff options
context:
space:
mode:
authorEddie Goodall <eddie.goodall@googlemail.com>2010-01-21 00:06:48 +0000
committerEddie Goodall <eddie.goodall@googlemail.com>2010-01-21 00:06:48 +0000
commita9ab2429f5b734f832349f4c3d32a23faebd2343 (patch)
tree1ff06bc60229569a48d6aa04a81d999fcfcad0a6 /po
parent64a1c261e9dbbe32372cd2d8970186e4b62a5d80 (diff)
downloadxine-lib-a9ab2429f5b734f832349f4c3d32a23faebd2343.tar.gz
xine-lib-a9ab2429f5b734f832349f4c3d32a23faebd2343.tar.bz2
Fix width and padding bugs in opengl fragprog renderer
There's a rendering bug when using the opengl fragment program if the width of the video is not a multiple of 16. U and V channels will have padding on each row because they always have pitches which are a multiple of 8, glTexSubImage2D will copy the padding data to the texture and the U & V channels will be skewed. The same also applies to the Y channel when width is not a multiple of 8. Fixed by passing pitch to glTexSubImage2D instead of width. The U & V channels also have to be outlined in grey on the texture and if there's padding then we need to add the line on the right to every frame before calling glTexSubImage. It also looks like the location of the V channel in the texture was off by one pixel in the call to glProgramEnvParameter4fARB. --HG-- extra : rebase_source : 1984e493f77e80081e55b7c3b816d3baea965e4e
Diffstat (limited to 'po')
0 files changed, 0 insertions, 0 deletions