summaryrefslogtreecommitdiffstats
path: root/video/out/libmpv.h
diff options
context:
space:
mode:
authorDudemanguy <random342@airmail.cc>2022-06-21 11:40:07 -0500
committerDudemanguy <random342@airmail.cc>2022-06-21 18:05:35 +0000
commit230d490ecade2a7151a31973c13abaafdaba826f (patch)
tree2733c0e9e2f5cf9d7d665332d9ea3780ce5774b2 /video/out/libmpv.h
parentb29878e3a19fa944b9ef044b9cef776ab3c89af7 (diff)
downloadmpv-230d490ecade2a7151a31973c13abaafdaba826f.tar.bz2
mpv-230d490ecade2a7151a31973c13abaafdaba826f.tar.xz
x11: correct provider detection logic
The old logic always reset the x11->has_mesa/has_nvidia values on every loop through the provider. This meant that it would always just match whatever the last provider happened to be. So in the case of a dual GPU system, if nvidia was the very first provider and the integrated intel/amd card was the second (in practice, this is probably mostly the other way around), then mpv would set has_mesa to true and has_nvidia to false and thus try to use presentation. This is not the intended behavior. Just rework this by also checking x11->has_mesa/has_nvidia in the loop so a true value from the previous iteration is preserved.
Diffstat (limited to 'video/out/libmpv.h')
0 files changed, 0 insertions, 0 deletions