summaryrefslogtreecommitdiffstats
path: root/video/out/opengl/osd.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-07-03 16:09:26 +0200
committerwm4 <wm4@nowhere>2016-07-03 16:34:32 +0200
commit8c7f9dc1a89e90e44b2b7dfb13fa899ad52352ee (patch)
treecd26459834e0163eb02c9ef1aa393fcd96f78bda /video/out/opengl/osd.c
parent823c353faaab569264f6d6d8c3d335bb0173b9e1 (diff)
downloadmpv-8c7f9dc1a89e90e44b2b7dfb13fa899ad52352ee.tar.bz2
mpv-8c7f9dc1a89e90e44b2b7dfb13fa899ad52352ee.tar.xz
vo_opengl: support inconsistent negative strides per plane
GL generally does not support flipping the image on upload, meaning negative strides are not supported. vo_opengl handles this by flipping rendering if the stride is inverted, and gl_pbo_upload() "ignores" negative strides by uploading without flipping the image. If individual planes had strides with different signs, this broke. The flipping affected the entire image, and only the sign of the first plane was respected. This is just a crazy corner case that will never happen, but it turns out this is quite simple to support, and actually improves the code somewhat.
Diffstat (limited to 'video/out/opengl/osd.c')
0 files changed, 0 insertions, 0 deletions