summaryrefslogtreecommitdiffstats
path: root/TOOLS
diff options
context:
space:
mode:
authorDudemanguy <random342@airmail.cc>2022-04-22 15:06:20 -0500
committerDudemanguy <random342@airmail.cc>2022-04-24 22:35:54 +0000
commit6407095871b8f177996a6ec3ee9a8c4f06bd63ee (patch)
tree4a6fde7aba5d0890fa55874d247536d75d0c0abc /TOOLS
parent9d133eb00b541eecf828a03a7da1c9ec502287ba (diff)
downloadmpv-6407095871b8f177996a6ec3ee9a8c4f06bd63ee.tar.bz2
mpv-6407095871b8f177996a6ec3ee9a8c4f06bd63ee.tar.xz
vo_gpu_next: avoid 0x0 resizes
It is possible for vo_gpu_next to attempt a resize before the windowing backend is fully initialized. In practice, this can happen on wayland which means libplacebo attempts a 0x0 resize. Depending on the API, a 0x0 resize may be allowed (vulkan or d3d11), but libplacebo just returns a 0 in this case which mpv doesn't do anything with anyway. In the case of opengl, this usage is explictly forbidden and will result in a warning which may confuse users. Solve this by just not trying a resize if dwidth and dheight in the vo are not available. Fixes #10083.
Diffstat (limited to 'TOOLS')
0 files changed, 0 insertions, 0 deletions