mirror of https://github.com/mpv-player/mpv
b7fd232524
Currently this was being duplicated on init and on runtime updates between both VOs. Since the conditions for setting this will get more complicated in the future commits, it's better to just handle it in one place. We could combine the vo_gpu and vo_gpu_next handling into one single function but vo_gpu_next has an additional condition for determining alpha that vo_gpu_does not, so we'll leave these separate for simplicity. Also this technically fixes a memory leak where gl_opts weren't being freed. |
||
---|---|---|
.. | ||
context.c | ||
context.h |