summaryrefslogtreecommitdiffstats
path: root/DOCS
diff options
context:
space:
mode:
authorAnton Kindestam <antonki@kth.se>2018-02-24 21:34:32 +0100
committerKevin Mitchell <kevmitch@gmail.com>2018-02-26 23:56:13 -0800
commit0874e4e461e3ade9e3bf1f537732c5f849a15b5e (patch)
treef156c6025efdfbb3827f8560cecd1bfed12c14ae /DOCS
parentfe23715876282215aa3d7cca26722ada4396d425 (diff)
downloadmpv-0874e4e461e3ade9e3bf1f537732c5f849a15b5e.tar.bz2
mpv-0874e4e461e3ade9e3bf1f537732c5f849a15b5e.tar.xz
vo_drm: Fix pageflip errors on VT switch
crtc_setup gets called on VT reacquire as well as during normal setup. When called during VT reacquire p->front_buf might not be 0, so the maths was wrong, and could cause array OOB errors. Use mathematically correct (for negative numbers) modulo to always pick the farthest away buffer (should work even for larger values of BUF_COUNT).
Diffstat (limited to 'DOCS')
0 files changed, 0 insertions, 0 deletions